home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / pwl500q.zip / LITE.DOC < prev    next >
Text File  |  1992-03-03  |  144KB  |  3,898 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.               ┌───────────────────────────────────────────────────────┐
  14.               │                                                       │
  15.               │       P r o W i n d o w s (tm)   L I T E   5.00       │
  16.               │                                                       │
  17.               │      The Professional Windows Management Library      │
  18.               │                     Documentation                     │
  19.               │                                                       │
  20.               │    (c) Copyright 1988-1992 DSE Software Publishing    │
  21.               │        Licensed Material. All Rights Reserved.        │
  22.               │                                                       │
  23.               │         ╔═══════════════════════════════════╗         │
  24.               │         ║ ▀▀▀▀▀▀▀▀       ▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀ ║         │
  25.               │         ║  ▀▀▀    ▀     ▀▀    ▀▀  ▀▀▀    ▀▀ ║         │
  26.               │         ║  ▀▀▀     ▀   ▀▀      ▀  ▀▀▀     ▀ ║         │
  27.               │         ║  ▀▀▀     ▀▀  ▀▀         ▀▀▀       ║         │
  28.               │         ║  ▀▀▀     ▀▀  ▀▀▀        ▀▀▀  ▀    ║         │
  29.               │         ║  ▀▀▀     ▀▀   ▀▀▀       ▀▀▀  ▀    ║         │
  30.               │         ║  ▀▀▀     ▀▀     ▀▀▀     ▀▀▀▀▀▀    ║         │
  31.               │         ║  ▀▀▀     ▀▀       ▀▀▀   ▀▀▀  ▀    ║         │
  32.               │         ║  ▀▀▀     ▀▀        ▀▀▀  ▀▀▀  ▀    ║         │
  33.               │         ║  ▀▀▀     ▀▀         ▀▀  ▀▀▀       ║         │
  34.               │         ║  ▀▀▀     ▀   ▀      ▀▀  ▀▀▀     ▀ ║         │
  35.               │         ║  ▀▀▀    ▀    ▀▀    ▀▀   ▀▀▀    ▀▀ ║         │
  36.               │         ║ ▀▀▀▀▀▀▀▀      ▀▀▀▀▀▀   ▀▀▀▀▀▀▀▀▀▀ ║         │
  37.               │         ╚═══════════════════════════════════╝         │
  38.               │                                                       │
  39.               │                DSE Software Publishing                │
  40.               │                  Post Office Box 96                   │
  41.               │                Willits, CA 95490-0096                 │
  42.               │                    (707) 459-4358                     │
  43.               │                                                       │
  44.               └───────────────────────────────────────────────────────┘
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.          Microsoft(R), QuickBASIC(R), and Professional BASIC are trademarks
  56.          or registered trademarks belonging to Microsoft Corporation.
  57.          IBM(R) and PC-DOS(R) are registered trademarks belonging to
  58.          International Business Machines.  GEnie(SM) is a registered
  59.          service mark belonging to GEnie Information Services.
  60.          ProWindows(tm) and HyperTechs(tm) are trademarks of DSE Software
  61.          Publishing.  Other product names are trademarks or registered
  62.          trademarks of thier respective holders.
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.                           T A B L E   O F   C O N T E N T S
  70.  
  71.          INTRODUCTION
  72.  
  73.               Disclaimer - Agreement ......................  I
  74.               What is ProWindows(tm) ......................  II
  75.               Hardware and Software Requirements ..........  III
  76.               How to obtain Customer Support ..............  III
  77.               Why must I call the Notice() routine ........  IV
  78.  
  79.  
  80.          CHAPTER 1 - THE "EVENT DRIVER"
  81.  
  82.               Event Driver Overview .......................  1.2
  83.               GetEvent ....................................  1.4
  84.               SetCalendar .................................  1.4
  85.               SetClock ....................................  1.4
  86.               SetEventDelay ...............................  1.5
  87.               SetUserCoords ...............................  1.5
  88.               QuickKey ....................................  1.6
  89.               useDrivers ..................................  1.6
  90.               Event Codes .................................  1.7
  91.  
  92.  
  93.          CHAPTER 2 - THE VIRTUAL WINDOW MANAGER
  94.  
  95.               Window Manager Overview .....................  2.2
  96.               AllocVirtualBlock (internal) ................  2.4
  97.               Attr ........................................  2.4
  98.               BinAttr .....................................  2.4
  99.               ClearWindow .................................  2.5
  100.               CloneWindow .................................  2.5
  101.               CloseWindow .................................  2.5
  102.               Copyright ...................................  2.5
  103.               DeAllocVirtualBlock (internal) ..............  2.6
  104.               DisplayWindow ...............................  2.6
  105.               DrawBox .....................................  2.6
  106.               FillScreen ..................................  2.7
  107.               ForceWindow .................................  2.7
  108.               FREEWINDOW ..................................  2.8
  109.               GetScreen ...................................  2.8
  110.               GetVirtualPtr ...............................  2.8
  111.               GrabWindow ..................................  2.9
  112.               HideWindow ..................................  2.9
  113.               HotPrint ....................................  2.9
  114.               InitPro .....................................  2.9
  115.               IsBWmode ....................................  2.10
  116.               MainWindow ..................................  2.10
  117.               MakeWindow ..................................  2.11
  118.               ModifyWindow ................................  2.11
  119.               MoveWindow ..................................  2.11
  120.               OpenWindow ..................................  2.12
  121.               PopWindow ...................................  2.13
  122.               PopSound ....................................  2.13
  123.               PutScreen ...................................  2.13
  124.               PreInit .....................................  2.13
  125.               ReAlignWindow ...............................  2.14
  126.               RecycleMode .................................  2.14
  127.               RefreshAllWindows ...........................  2.15
  128.  
  129.                 (c) Copyright 1988-1991 DSE Software Publishing
  130.  
  131.  
  132.  
  133.  
  134.               RefreshMain .................................  2.15
  135.               RefreshMode .................................  2.15
  136.               RefreshWindow ...............................  2.16
  137.               RemoveSound .................................  2.13
  138.               RemoveWindow ................................  2.16
  139.               ResizeWindow ................................  2.16
  140.               RestoreWindow (internal) ....................  2.17
  141.               ScanHandle (internal) .......................  2.17
  142.               ScanVirtualBlock (internal) .................  2.17
  143.               ScreenMode ..................................  2.17
  144.               SetBorderColor ..............................  2.18
  145.               SetBWmode ...................................  2.18
  146.               SetCompressMode (internal) ..................  2.18
  147.               SetMonitorColor .............................  2.18
  148.  
  149.               SetShadow ...................................  2.19
  150.               SetWindow ...................................  2.19
  151.               SetWindowMinSize ............................  2.19
  152.               SetZoomSpeed ................................  2.20
  153.               SetZoomStyle ................................  2.20
  154.               ShowVLSmemory (internal) ....................  2.21
  155.               ShowWindow ..................................  2.21
  156.               sprint ......................................  2.21
  157.               StoreWindow (internal) ......................  2.22
  158.               TitleWindow .................................  2.22
  159.               UnAttr ......................................  2.23
  160.               UnBinAttr ...................................  2.23
  161.               UpdateScrollBars ............................  2.23
  162.               ValidateWindow (internal) ...................  2.23
  163.               VideoBoard ..................................  2.23
  164.               VideoPage ...................................  2.24
  165.               VideoPageLen ................................  2.24
  166.               vprint ......................................  2.24
  167.               WhatWindow ..................................  2.25
  168.               winCLS ......................................  2.25
  169.               winColor ....................................  2.25
  170.               winDeleteLine ...............................  2.26
  171.               winInsertLine ...............................  2.26
  172.               winLocate ...................................  2.26
  173.               winPos ......................................  2.27
  174.               winPrint ....................................  2.27
  175.               winPrintCR ..................................  2.27
  176.               winPrintCRLF ................................  2.28
  177.               winPrintLF ..................................  2.28
  178.               winPrintLn ..................................  2.28
  179.               winPrintNum .................................  2.29
  180.               wlocate .....................................  2.29
  181.               wprint ......................................  2.29
  182.               wcprint .....................................  2.29
  183.               cwprint .....................................  2.29
  184.               cwcprint ....................................  2.29
  185.  
  186.  
  187.          CHAPTER 3 - MOUSE ROUTINE FEATURES
  188.  
  189.               Mouse Overview ..............................  5.2
  190.               CheckMouse ..................................  5.3
  191.               DoubleClick .................................  5.3
  192.               GetMouse ....................................  5.3
  193.  
  194.                 (c) Copyright 1988-1991 DSE Software Publishing
  195.  
  196.  
  197.  
  198.  
  199.               GetMouseInfo ................................  5.4
  200.               GetMousePress ...............................  5.4
  201.               GetMouseRelease .............................  5.5
  202.               Mouse .......................................  5.5
  203.               MouseCursorOff ..............................  5.6
  204.               MouseCursorOn ...............................  5.6
  205.               MouseKillWindow .............................  5.6
  206.               SetMouse ....................................  5.7
  207.               SetMouseMode ................................  5.7
  208.               SetMouseState ...............................  5.7
  209.               SetMouseWindow ..............................  5.7
  210.               TermMouse ...................................  5.8
  211.  
  212.  
  213.          CHAPTER 4 - GLOBAL VARIABLES AND DATA TYPES
  214.  
  215.               System Constants ............................  4.1
  216.               Data Types ..................................  4.2
  217.               Global Variables and Arrays .................  4.3
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.                 (c) Copyright 1988-1991 DSE Software Publishing
  260.  
  261.  
  262.          ProWindows(tm) Professional                                  I
  263.  
  264.          DISCLAIMER - AGREEMENT
  265.  
  266.               Users of ProWindows(tm) LITE 5.00 must accept this disclaimer
  267.               of warranty:
  268.  
  269.               "ProWindows(tm) LITE 5.00 is supplied as is.  The author
  270.               disclaims all warranties, expressed or implied, including,
  271.               without limitation, the warranties of merchantability and of
  272.               fitness for any purpose.  The author assumes no liability for
  273.               damages, direct or consequential, which may result from the
  274.               use of ProWindows(tm) LITE 5.00."
  275.  
  276.               ProWindows(tm) LITE 5.00 is a "shareware program" and is
  277.               provided at no charge to the user for evaluation.  Feel free
  278.               to share it with your friends, but please do not give it away
  279.               altered or as part of another system.  The essence of "user-
  280.               supported" software is to provide personal computer users
  281.               with quality software without high prices, and yet to provide
  282.               incentive for programmers to continue to develop new
  283.               products.  If you find this program useful and find that you
  284.               are using ProWindows(tm) LITE 5.00 and continue to use
  285.               ProWindows(tm) LITE 5.00 after a 21 day trial period, you
  286.               must make a registration payment of $25.00 to DSE Software
  287.               Publishing.  The $25.00 registration will license one copy
  288.               for use by a single user on any one computer at any one time,
  289.               but may be freely moved from one computer location to
  290.               another, so long as there is NO possibility of it being used
  291.               at one location while it is being used at another.
  292.  
  293.               Commercial users of ProWindows(tm) LITE 5.00 must register
  294.               and pay for their copies of ProWindows(tm) LITE 5.00 within
  295.               21 days of first use or their license is withdrawn.  Site-
  296.               License arrangements may be made by contacting DSE Software
  297.               Publishing.
  298.  
  299.               Anyone distributing ProWindows(tm) LITE 5.00 for any kind of
  300.               remuneration must first contact DSE Software Publishing at
  301.               the address below for authorization.  This authorization will
  302.               be automatically granted upon request and such distributors
  303.               may begin offering ProWindows(tm) LITE 5.00 immediately
  304.               (However DSE Software Publishing must still be advised so
  305.               that the distributor can be kept up-to-date with the latest
  306.               version of ProWindows(tm) LITE.
  307.  
  308.               You are encouraged to pass a copy of ProWindows(tm) LITE 5.00
  309.               along to your friends for evaluation.  Please encourage them
  310.               to register their copy if they find that they can use it.
  311.               All registered users will receive a copy of the latest
  312.               version of the ProWindows(tm) LITE 5.00 system.
  313.  
  314.               Registration fees should be paid to:
  315.  
  316.                     DSE Software Publishing
  317.                     Post Office Box 96
  318.                     Willits, CA 95490-0096
  319.                     (707) 459-4358
  320.  
  321.  
  322.  
  323.  
  324.                 (c) Copyright 1988-1991 DSE Software Publishing
  325.  
  326.  
  327.          ProWindows(tm) Professional                                  II
  328.  
  329.          WHAT IS PROWINDOWS(tm)
  330.  
  331.               ProWindows(tm) is probably the most elaborate, but easy to
  332.               use, software development systems that money can buy.  By
  333.               utilizing the ProWindows(tm) libraries, development time for
  334.               creating intricate software packages can be cut
  335.               significantly.
  336.  
  337.               At the very heart of ProWindows(tm) is the "Virtual Window
  338.               Manager".  This special driver manages every subroutine used
  339.               to create, print to, hide, clear, and the dozen other things
  340.               you can do to a window.
  341.  
  342.               When you create a window, the manager automatically creates
  343.               storage space for the window's contents.  When your window is
  344.               ready to be displayed, the window manager automatically saves
  345.               the portion of the screen you are about to place the window
  346.               on.  Then, to make things even nicer, by using a specialized
  347.               compression algorithm, the old screen is squeezed to
  348.               sometimes less that 80% it's original size.  This is intended
  349.               to save you plenty of memory space.  Also, your compressed
  350.               screen is stored in "far" memory so you will save that
  351.               valuable "string space".
  352.  
  353.               Once your windows are displayed, you can move, hide, overlap,
  354.               and re-size them with a simple click of a mouse (or you can
  355.               add keyboard commands).
  356.  
  357.               The window manager can manage up to 128 concurrent windows
  358.               (memory permitting).
  359.  
  360.               Nothing could be easier.
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.                 (c) Copyright 1988-1991 DSE Software Publishing
  390.  
  391.  
  392.          ProWindows(tm) Professional                                 III
  393.  
  394.          HARDWARE AND SOFTWARE REQUIREMENTS
  395.  
  396.               o  An IBM(R) PC/XT/AT or true "compatible" running MS-DOS(R)
  397.                  or PC-DOS(R) 2.1 or later.
  398.  
  399.               o  One high-density floppy-disk drive or one floppy-disk
  400.                  drive and a hard disk drive.
  401.  
  402.               o  512K System Memory.
  403.  
  404.               o  Microsoft(R) QuickBASIC(R) 4.5, or Microsoft BASIC 6.x, or
  405.                  Microsoft BASIC Professional Development System 7.x.
  406.  
  407.               o  Other requirements may vary with the compiler used.
  408.  
  409.  
  410.          HOW TO OBTAIN CUSTOMER SUPPORT
  411.  
  412.               Registered users of ProWindows(tm) are offered almost
  413.               unlimited support.  Listed in order of preference, customer
  414.               support is offered in the following ways:
  415.  
  416.               o  GE-Mail (GEnie) messages can be addressed to
  417.                  "DSE.SOFTWARE".  2 to 24 hour response time.
  418.  
  419.               o  Voice support is available Monday through Friday, 12:00 PM
  420.                  to 5:00 PM (Pacific) at (707) 459-4358.
  421.  
  422.               o  US Mail is by far the slowest (allow 1 to 3 weeks) but may
  423.                  be addressed to:
  424.  
  425.                     Post-sales Support
  426.                     DSE Software Publishing
  427.                     Post Office Box 96
  428.                     Willits, CA 95490-0096
  429.  
  430.               Enclose (or have available) the following information:
  431.  
  432.                    a). Product's serial number, and release number.
  433.                    b). Registered user's full name.
  434.                    c). Registered user's full address.
  435.  
  436.               If you are having technical problems, also have available a
  437.               complete description of your computer configuration,
  438.               including Brand of computer, DOS version, TSRs or Device
  439.               Drivers loaded, Amount of memory, add-on boards, Monitor and
  440.               adaptor card installed.
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.                 (c) Copyright 1988-1991 DSE Software Publishing
  455.  
  456.  
  457.          ProWindows(tm) Professional                                  IV
  458.  
  459.          WHY MUST I CALL THE Notice() ROUTINE?
  460.  
  461.               The "evaluation" copy of ProWindows(tm) LITE 5.00 contains an
  462.               additional routine that you MUST call in order to make use of
  463.               this package.
  464.  
  465.          ==================================================================
  466.  
  467.          Notice - SUB
  468.  
  469.          ACTION    Displays a "registration encouragement" message.
  470.  
  471.          SYNTAX    Notice
  472.  
  473.          REMARKS   You are required to call this routine within one (1)
  474.                    minute of displaying your first window.
  475.  
  476.                    The purpose of this routine is to remind you that the
  477.                    version you now possess is an "evaluation" copy of
  478.                    ProWindows(tm) LITE and as stated elsewhere, you are
  479.                    permitted 21 days to evaluate the product before you are
  480.                    required to pay for it.
  481.  
  482.                    When called, ProWindows(tm) displays a window containing
  483.                    a "registration encouragement" message.  This window
  484.                    works just like any other window and can be moved, re-
  485.                    sized, hidden, etc.
  486.  
  487.                    When displayed, the global variable CurrentWindow%
  488.                    contains the handle of displayed window.
  489.  
  490.          SEE ALSO  OpenWindow and CloseWindow
  491.  
  492.          ==================================================================
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.                 (c) Copyright 1988-1991 DSE Software Publishing
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.                   #####  ##   ##   ###   ###### ###### ###### ######
  539.                  ##   ## ##   ## ##   ## ##   ##  ##   ##     ##   ##
  540.                  ##      ##   ## ##   ## ##   ##  ##   ##     ##   ##
  541.                  ##      ####### ####### ######   ##   #####  ######
  542.                  ##      ##   ## ##   ## ##       ##   ##     ## ##
  543.                  ##   ## ##   ## ##   ## ##       ##   ##     ##  ##
  544.                   #####  ##   ## ##   ## ##       ##   ###### ##   ##
  545.  
  546.                                  #####  ##   ## ######
  547.                                 ##   ## ##   ## ##
  548.                                 ##   ## ###  ## ##
  549.                                 ##   ## ## # ## #####
  550.                                 ##   ## ##  ### ##
  551.                                 ##   ## ##   ## ##
  552.                                  #####  ##   ## ######
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.                 (c) Copyright 1988-1992 DSE Software Publishing
  584.  
  585.  
  586.          ProWindows(tm) LITE - Version 5.00                           1.2
  587.  
  588.          SECTION 1 - EVENT DRIVER OVERVIEW
  589.          =================================================================
  590.  
  591.               The ProWindows GetEvent() function is the programmer's
  592.               interface to most library functions.
  593.  
  594.               Ideally, GetEvent() should periodically take control of your
  595.               program to determine if any event needs to be processed.
  596.               When an event occurs, GetEvent() dispatches control to the
  597.               appropriate handler.  When an event has been completed,
  598.               GetEvent() returns a unique number indicating what type of
  599.               event took place, and then control is returned to the
  600.               application.  By providing the returned value back to
  601.               GetEvent(), you can further determine the handle of the
  602.               window or menu or form that was effected.
  603.  
  604.               As an example, if GetEvent(0) returns the value 5, it
  605.               indicates that a window's hide icon was clicked, and then
  606.               GetEvent(5) returns the handle of the window that was
  607.               actually closed.
  608.  
  609.               GetEvent() is also responsible for maintaining the resident
  610.               clock and calendar.
  611.  
  612.               To make use of any function outlined in this chapter, you
  613.               must add the following line to your program code:
  614.  
  615.                    REM $INCLUDE : 'LITE.BI'
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.                 (c) Copyright 1988-1992 DSE Software Publishing
  649.  
  650.  
  651.          ProWindows(tm) LITE - Version 5.00                           1.3
  652.  
  653.          SECTION 2 - ROUTINE DESCRIPTIONS
  654.          =================================================================
  655.  
  656.          GetEvent% - Function
  657.  
  658.          ACTION    Queries the event manager.
  659.  
  660.          SYNTAX    variablename% = GetEvent%(info%)
  661.  
  662.          REMARKS   This function accepts the following argument:
  663.  
  664.                    Argument         Description
  665.                    ---------------  --------------------------------------
  666.                    info%            Type of information to retrieve
  667.  
  668.                    This routine actually performs two functions.  First, it
  669.                    takes control the program for a specified amount time
  670.                    (see SetEventDelay).  During this time, it waits to see
  671.                    if a window, menu or form is manipulated.  If an event
  672.                    takes place, GetEvent%() returns a code indicating the
  673.                    type of event that took place.  If nothing happens, a
  674.                    value of 17 is returned indicating a "time out".
  675.  
  676.                    Second, depending on the type of event that takes place,
  677.                    you can pass the returned value back to GetEvent%() to
  678.                    get the handle of the window, menu, or form control that
  679.                    was manipulated.
  680.  
  681.          SEE ALSO  Section 3 of this chapter.
  682.  
  683.          ------------------------------------------------------------------
  684.  
  685.          SetCalendar - SUB
  686.  
  687.          ACTION    Installs resident calendar in the specified window.
  688.  
  689.          SYNTAX    SetCalendar Handle%, row%, col%, Attrib%, status%
  690.  
  691.          REMARKS   This function accepts the following arguments:
  692.  
  693.                    Argument         Description
  694.                    ---------------  --------------------------------------
  695.                    Handle%          If 0, the calendar is displayed in
  696.                                     coordinates relative to the physical
  697.                                     screen, otherwise the coordinates are
  698.                                     relative to the the defined window.
  699.                    row%, col%       Screen/window coordinates of calendar.
  700.                    attrib%          Video attribute of calendar.
  701.                    status%          If false, calendar is disabled.
  702.  
  703.                    Displays a perpetual calendar at the supplied
  704.                    coordinates.  The display format is: "MM/DD/YYYY".  If
  705.                    the calendar is within a window, it is only updated when
  706.                    it is in the top most window.
  707.  
  708.          ------------------------------------------------------------------
  709.  
  710.          SetClock - SUB
  711.  
  712.  
  713.                 (c) Copyright 1988-1992 DSE Software Publishing
  714.  
  715.  
  716.          ProWindows(tm) LITE - Version 5.00                           1.4
  717.  
  718.          ACTION    Installs resident clock in specified window.
  719.  
  720.          SYNTAX    SetClock Handle%, row%, col%, Attrib%, status%
  721.  
  722.          REMARKS   This function accepts the following arguments:
  723.  
  724.                    Argument         Description
  725.                    ---------------  --------------------------------------
  726.                    Handle%          If 0, the clock is displayed in
  727.                                     coordinates relative to the physical
  728.                                     screen, otherwise the coordinates are
  729.                                     relative to the defined window.
  730.                    row%, col%       Screen/window coordinates of clock.
  731.                    attrib%          Video attribute of clock.
  732.                    status%          If false, clock is disabled.
  733.  
  734.                    Displays a perpetual clock at the supplied coordinates.
  735.                    The display format is: "HH:MM:SS".  If the clock is
  736.                    within a window, it is only updated when it is in top
  737.                    most window.
  738.  
  739.          ------------------------------------------------------------------
  740.  
  741.          SetEventDelay - SUB
  742.  
  743.          ACTION    Sets maximum amount time for GetEvent() control.
  744.  
  745.          SYNTAX    SetEventDelay ticks%
  746.  
  747.          REMARKS   This function accepts the following arguments:
  748.  
  749.                    Argument         Description
  750.                    ---------------  --------------------------------------
  751.                    ticks%           Maximum clock ticks for control.
  752.  
  753.                    This function determines the maximum amount time that
  754.                    GetEvent() will take control of the program.  Resolution
  755.                    is measured in timer ticks (18.2) milliseconds.  A value
  756.                    of 0 returns control immediately if no event is pending.
  757.  
  758.          ------------------------------------------------------------------
  759.  
  760.          SetUserCoords - SUB
  761.  
  762.          ACTION    Defines an area as a mouse "hotspot".
  763.  
  764.          SYNTAX    SetUserCoords Handle%, row%, col%, rows%, cols%
  765.  
  766.          REMARKS   This function accepts the following arguments:
  767.  
  768.                    Argument         Description
  769.                    ---------------  --------------------------------------
  770.                    Handle%          An integer between 1 and 64 defining
  771.                                     the handle to assign a given "hotspot".
  772.                    row%, col%       Screen coordinates of block.
  773.                    rows%, cols%     Dimensions of block.
  774.  
  775.                    Defines an area of the screen as a mouse hotspot.  When
  776.                    a user clicks or releases the left mouse button while
  777.  
  778.                 (c) Copyright 1988-1992 DSE Software Publishing
  779.  
  780.  
  781.          ProWindows(tm) LITE - Version 5.00                           1.5
  782.  
  783.                    within a "hotspot", GetEvent(0) returns 22 or 24,
  784.                    respectively.
  785.  
  786.          ------------------------------------------------------------------
  787.          QuickKey - SUB
  788.  
  789.          ACTION    Defines a global "short cut" Key.
  790.  
  791.          SYNTAX    QuickKey handle%, Keypress$
  792.  
  793.          REMARKS   This function accepts the following argument:
  794.  
  795.                    Argument         Description
  796.                    ---------------  --------------------------------------
  797.                    handle%          A unique handle to assign to the
  798.                                     keypress.
  799.                    Keypress$        A 1 or 2 byte string to watch for.
  800.  
  801.                    This function allows trapping of a specific keypress.
  802.                    Keypress$ should be the exact string (same as would be
  803.                    returned by INKEY$) to watch for.  When a "hot key" is
  804.                    pressed, the function GetEvent() returns a value of 19.
  805.                    A subsequent call to GetEvent(19) will return the handle
  806.                    of the pressed key.
  807.  
  808.          ------------------------------------------------------------------
  809.  
  810.          UseDrivers - SUB
  811.  
  812.          ACTION    Initializes various external drivers.
  813.  
  814.          SYNTAX    useDrivers menus%, forms%, cursor%
  815.  
  816.          REMARKS   This function accepts the following argument:
  817.  
  818.                    Argument         Description
  819.                    ---------------  --------------------------------------
  820.                    menus%           NOT AVAILABLE IN LITE VERSION
  821.                    forms%           NOT AVAILABLE IN LITE VERSION
  822.                    cursor%          Set to '1' if your program will use any
  823.                                     "winPrint" style function calls.
  824.  
  825.                    This function helps solve various QuickBASIC quirks by
  826.                    enabling or disabling access to certain functions and
  827.                    variables.  To make calls to the listed function types,
  828.                    you must pass a value of '1' to the particular
  829.                    parameter.
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.                 (c) Copyright 1988-1992 DSE Software Publishing
  844.  
  845.  
  846.          ProWindows(tm) LITE - Version 5.00                           1.6
  847.  
  848.          SECTION 3 - GETEVENT%() RETURN CODES
  849.          =================================================================
  850.  
  851.          Argument    Ret. Code   Description
  852.          ---------   ---------   -----------------------------------------
  853.              0           0       No Event to process.
  854.                          1       Can not process keystroke.  The variable
  855.                                  KeyBuffer$ holds the keystroke.
  856.                          2       A new window was selected.
  857.                          3       A window was re-sized.
  858.                          4       A window was moved.
  859.                          5       A window was closed.
  860.                          6       Mouse was clicked on the current window's
  861.                                  vertical scroll bar.
  862.                          7       Mouse was clicked on the current window's
  863.                                  vertical UP button.
  864.                          8       Mouse was clicked on the current window's
  865.                                  vertical DOWN button.
  866.                          9       Mouse was clicked on the current window's
  867.                                  horizontal scroll bar.
  868.                         10       Mouse was clicked on the current window's
  869.                                  horizontal LEFT button.
  870.                         11       Mouse was clicked on the current window's
  871.                                  horizontal RIGHT button.
  872.                         12       A Button selected.
  873.                         13       Moved to new button.
  874.                         14       A menu item was selected.
  875.                         15       <CR> was pressed.
  876.                         16       <ESC> was pressed.
  877.                         17       Time out.  Means nothing happened.
  878.                         18       F1 was pressed. GlobalScreen% holds the
  879.                                  help screen queued for display.
  880.                         19       A quick key was pressed.
  881.                         20       Changed button position.
  882.                         21       Internal
  883.                         22       User defined mouse click event occurred.
  884.                         23       Internal
  885.                         24       User defined mouse release event occurred.
  886.                         30       Mouse was clicked on a form's vertical
  887.                                  scroll bar.
  888.                         31       Mouse was clicked on a form's vertical UP
  889.                                  button.
  890.                         32       Mouse was clicked on a form's vertical
  891.                                  DOWN button.
  892.                         33       Mouse was clicked on a form's horizontal
  893.                                  scroll bar.
  894.                         34       Mouse was clicked on a form's horizontal
  895.                                  LEFT button.
  896.                         35       Mouse was clicked on a form's horizontal
  897.                                  RIGHT button.
  898.                         36       Changed position within a pick list.
  899.                         37       Clicked pick list item.
  900.                        101       Left Arrow key was pressed.
  901.                        102       Right Arrow key was pressed.
  902.                        103       Up Arrow key was pressed.
  903.                        104       Down Arrow key was pressed.
  904.                        105       PgUp key was pressed.
  905.                        106       PgDn key was pressed.
  906.                        107       Home key was pressed.
  907.  
  908.                 (c) Copyright 1988-1992 DSE Software Publishing
  909.  
  910.  
  911.          ProWindows(tm) LITE - Version 5.00                           1.7
  912.  
  913.          Argument    Ret. Code   Description
  914.          ---------   ---------   -----------------------------------------
  915.  
  916.                        108       End key was pressed.
  917.                        109       Insert key was pressed.
  918.                        110       Delete key was pressed.
  919.                        111       Ctrl-Home was pressed.
  920.                        112       Ctrl-End was pressed.
  921.                        200       Right mouse button was clicked.
  922.              2           n       Returns the handle of the affected window.
  923.              3           n                       "
  924.              4           n                       "
  925.              5           n                       "
  926.              6           n       Returns new vertical scroll bar position.
  927.              7           n                       "
  928.              8           n                       "
  929.              9           n       Returns new horizontal scroll bar position
  930.             10           n                       "
  931.             11           n                       "
  932.             12           n       Returns handle of manipulated button.
  933.             13           n                       "
  934.             14           n       Returns menu item selected.
  935.             19           n       Returns hot key pressed.
  936.             21           n       Returns internal event number.
  937.             23           n                       "
  938.             22           n       Returns user event number
  939.             24           n                       "
  940.             30           n       Returns handle of manipulated button.
  941.             31           n                       "
  942.             32           n                       "
  943.             33           n                       "
  944.             34           n                       "
  945.             35           n                       "
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.                 (c) Copyright 1988-1992 DSE Software Publishing
  974.  
  975.  
  976.          ProWindows(tm) LITE - Version 5.00                           1.8
  977.  
  978.          SECTION 4 - DATA TYPES
  979.          =================================================================
  980.  
  981.          The following data types are declared in LITE.BI.
  982.  
  983.          TYPEs and Elements            Remarks
  984.          ----------------------------  -----------------------------------
  985.  
  986.          TYPE InkeyRec
  987.               Length AS INTEGER        Length of Keypress$
  988.               ShiftState AS INTEGER    State of keyboard flags
  989.               KeyChar AS STRING * 1    Single byte version of Keypress$
  990.               KeyValue AS INTEGER      ASCII value of Keypress$
  991.               AltChar AS STRING * 1    Parsed (assumes ALT was pressed)
  992.               AltValue AS INTEGER      ALT version scancode
  993.               ExtChar AS STRING * 2    Two byte version of Keypress$
  994.               ExtValue AS INTEGER      Scan code of Keypress$
  995.          END TYPE
  996.  
  997.  
  998.          SELECT GLOBAL VARIABLES AND ARRAYS
  999.  
  1000.          NAME      /DialogData/ Keyboard AS InkeyRec
  1001.  
  1002.          REMARKS   The "Keyboard" structure is filled from within the
  1003.                    WindowDriver() function.  It contains 3 uniquely parsed
  1004.                    versions of the global variable KeyBuffer$.
  1005.  
  1006.          -----------------------------------------------------------------
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.                 (c) Copyright 1988-1992 DSE Software Publishing
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.                   #####  ##   ##   ###   ###### ###### ###### ######
  1058.                  ##   ## ##   ## ##   ## ##   ##  ##   ##     ##   ##
  1059.                  ##      ##   ## ##   ## ##   ##  ##   ##     ##   ##
  1060.                  ##      ####### ####### ######   ##   #####  ######
  1061.                  ##      ##   ## ##   ## ##       ##   ##     ## ##
  1062.                  ##   ## ##   ## ##   ## ##       ##   ##     ##  ##
  1063.                   #####  ##   ## ##   ## ##       ##   ###### ##   ##
  1064.  
  1065.                               ###### ##   ##  #####
  1066.                                 ##   ##   ## ##   ##
  1067.                                 ##   ##   ## ##   ##
  1068.                                 ##   ##   ## ##   ##
  1069.                                 ##   ## # ## ##   ##
  1070.                                 ##   ### ### ##   ##
  1071.                                 ##   ##   ##  #####
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.                 (c) Copyright 1988-1992 DSE Software Publishing
  1103.  
  1104.  
  1105.          ProWindows(tm) LITE - Version 5.00                           2.2
  1106.  
  1107.          SECTION 1 - WINDOW MANAGER OVERVIEW
  1108.          =================================================================
  1109.  
  1110.               The ProWindows(tm) Virtual Window Manager is a set of BASIC
  1111.               callable routines written in BASIC, C, and Assembler.  The
  1112.               Window Manager permits you to add sophisticated windowing
  1113.               capabilities to your applications with minimal coding.
  1114.  
  1115.               ProWindows provides two distinct type of window control
  1116.               functions:
  1117.  
  1118.          STACK BASED WINDOWS
  1119.  
  1120.               Stack based window systems are perhaps the easiest to
  1121.               implement, but they are by far the most limited.  The concept
  1122.               is simple: Windows are displayed on a last on first off
  1123.               basis.  Output is limited to the top most window only.  Stack
  1124.               based systems are not virtual, meaning that text displayed
  1125.               with a window is not actually a part of the window, but is
  1126.               only displayed at the same location.
  1127.  
  1128.               PopWindow() and RemoveWindow() are classic examples of stack
  1129.               based window routines.  PopWindow() always displays a window
  1130.               at the top of the stack, and RemoveWindow() always removes
  1131.               the window at the top of the stack.
  1132.  
  1133.          HANDLE BASED VIRTUAL WINDOWS
  1134.  
  1135.               Handle based virtual window systems are a more natural form
  1136.               of windowing systems.  Each window is referred to by a unique
  1137.               handle and output is directed to the current window handle.
  1138.               Handle based windows can be moved, re-sized, hidden,
  1139.               scrolled, re-displayed and more without affecting the window
  1140.               contents.
  1141.  
  1142.               OpenWindow(), DisplayWindow(), and CloseWindow() are the
  1143.               handle based alternatives to creating windows.  OpenWindow()
  1144.               creates a new window and notifies it's presence to the window
  1145.               manager.  DisplayWindow() in turn brings the window to the
  1146.               screen.  CloseWindow() finally removes the window from the
  1147.               display, and notifies the window manager that the window has
  1148.               been deleted.  Other routines exist to hide, move, and
  1149.               perform other tasks to an existing window.
  1150.  
  1151.               One often misunderstood feature of virtual windows is that
  1152.               one does not have to be displayed to be manipulated.  It is
  1153.               possible to write to a non-displayed window, and then at some
  1154.               later point bring the window to the foreground.
  1155.  
  1156.               Even though ProWindows is internally designed around a
  1157.               virtual based system, stack based functions can be carefully
  1158.               integrated into the same code.
  1159.  
  1160.          CREATING WINDOW HANDLES
  1161.  
  1162.               The process of opening and closing windows with ProWindows is
  1163.               virtually identical to opening and closing files with BASIC.
  1164.               As with files, windows can be opened with "Explicit" or
  1165.               "Implicit" handles.
  1166.  
  1167.                 (c) Copyright 1988-1992 DSE Software Publishing
  1168.  
  1169.  
  1170.          ProWindows(tm) LITE - Version 5.00                           2.3
  1171.  
  1172.               "Explicit" handles are determined at compile time.  An
  1173.               example of opening a window (or a file) with an Explicit
  1174.               handle would be:
  1175.  
  1176.                    OPEN "myfile.dat" FOR INPUT AS #1
  1177.                    OpenWindow 1, 10, 10, attr(7,0), 1, 1, 1, Opts
  1178.  
  1179.                    CLOSE #1
  1180.                    CloseWindow 1
  1181.  
  1182.               With both examples, the handle is 1.
  1183.  
  1184.               "Implicit" handles are determined at run time.  An example of
  1185.               opening a window (or a file) with an Implicit handle would
  1186.               be:
  1187.  
  1188.                    FileHandle = FREEFILE
  1189.                    OPEN "myfile.dat" FOR INPUT AS #FileHandle
  1190.  
  1191.                    WinHandle = FREEWINDOW
  1192.                    OpenWindow WinHandle, 10, 10, attr(7,0), 1, 1, 1, Opts
  1193.  
  1194.                    CLOSE #FileHandle
  1195.                    CloseWindow WinHandle
  1196.  
  1197.               FREEFILE is a BASIC function that returns the next available
  1198.               file handle and FREEWINDOW is a ProWindows function that
  1199.               returns the next available window handle.
  1200.  
  1201.               With both windows and files, Explicit handles are usually
  1202.               used only at main level code because it is assumed that the
  1203.               main level code will always know what windows and files are
  1204.               open.  "Implicit" handles are usually used in sub modules
  1205.               because they may not have access or knowledge of main level
  1206.               handles.  It is good programming practice to close all
  1207.               Implicit handles BEFORE exiting module level code.
  1208.  
  1209.               To make use of any function outlined in this chapter, you
  1210.               must add the following line to your program code:
  1211.  
  1212.                    REM $INCLUDE : 'LITE.BI'
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.                 (c) Copyright 1988-1992 DSE Software Publishing
  1233.  
  1234.  
  1235.          ProWindows(tm) LITE - Version 5.00                           2.4
  1236.  
  1237.          SECTION 2 - ROUTINE DESCRIPTIONS
  1238.          =================================================================
  1239.  
  1240.          AllocVirtualBlock - SUB
  1241.  
  1242.          ACTION    Internal to Window Manager - DO NOT USE
  1243.  
  1244.          SYNTAX    AllocVirtualBlock (handle%, size%)
  1245.  
  1246.          REMARKS   Allocates a portion of the VirMem() array and assigns it
  1247.                    to the given handle.
  1248.  
  1249.          ------------------------------------------------------------------
  1250.  
  1251.          ATTR% - Function
  1252.  
  1253.          ACTION    Calculates and returns an integer value corresponding to
  1254.                    supplied Foreground and Background colors.
  1255.  
  1256.          SYNTAX    variablename% = ATTR (fore%, back%)
  1257.  
  1258.          REMARKS   This function accepts the following arguments:
  1259.  
  1260.                    Argument         Description
  1261.                    ---------------  --------------------------------------
  1262.                    fore%            Foreground color of video attribute.
  1263.                    back%            Background color of video attribute.
  1264.  
  1265.                    Returns an integer ranging 0 to 255.  Valid Foreground
  1266.                    ranges are 0 to 31.  Valid Background ranges are 0 to 7.
  1267.  
  1268.          SEE ALSO: BASIC COLOR statement.
  1269.  
  1270.          ------------------------------------------------------------------
  1271.  
  1272.          BINATTR% - Function
  1273.  
  1274.          ACTION    Calculates and returns an integer value corresponding to
  1275.                    the Foreground and Background arguments and the
  1276.                    Highlight and Blink flags.
  1277.  
  1278.          SYNTAX    variablename% = BINATTR (fore%, back%, high%, blink%)
  1279.  
  1280.          REMARKS   This function accepts the following arguments:
  1281.  
  1282.                    Argument         Description
  1283.                    ---------------  --------------------------------------
  1284.                    fore%            Foreground color of video attribute.
  1285.                    back%            Background color of video attribute.
  1286.                    high%            Set if Highlighting is to be enabled.
  1287.                    blink%           Set if Blinking is to be enabled.
  1288.  
  1289.                    Returns an unsigned integer ranging 0 to 255.  Valid
  1290.                    Foreground and Background ranges are 0 to 7.  Highlight
  1291.                    and Blink are flags that should be set to 0 or 1.
  1292.                    Always pass only INTEGER values.
  1293.  
  1294.          SEE ALSO: BASIC COLOR statement.
  1295.  
  1296.  
  1297.                 (c) Copyright 1988-1992 DSE Software Publishing
  1298.  
  1299.  
  1300.          ProWindows(tm) LITE - Version 5.00                           2.5
  1301.  
  1302.          ClearWindow - SUB
  1303.  
  1304.          ACTION    Clears everything within the borders of the current
  1305.                    window being displayed.
  1306.  
  1307.          SYNTAX    ClearWindow
  1308.  
  1309.          REMARKS   Removes entire contents of current window but does not
  1310.                    remove window titles.
  1311.  
  1312.          ------------------------------------------------------------------
  1313.  
  1314.          CloneWindow - SUB
  1315.  
  1316.          ACTION    Creates duplicate of a window.
  1317.  
  1318.          SYNTAX    CloneWindow handle%
  1319.  
  1320.          REMARKS   This sub accepts the following argument:
  1321.  
  1322.                    Argument         Description
  1323.                    ---------------  --------------------------------------
  1324.                    Handle%          Handle of an existing virtual window.
  1325.  
  1326.                    Creates an exact duplicate of an existing virtual window
  1327.                    and it's contents.  The global variable CurrentWindow%
  1328.                    is updated to the handle of the new window.  The new
  1329.                    window is not initially displayed.
  1330.  
  1331.          SEE ALSO  OpenWindow
  1332.  
  1333.          ------------------------------------------------------------------
  1334.  
  1335.          CloseWindow - SUB
  1336.  
  1337.          ACTION    Removes and closes a virtual window.
  1338.  
  1339.          SYNTAX    CloseWindow handle%
  1340.  
  1341.          REMARKS   This sub accepts the following argument:
  1342.  
  1343.                    Argument         Description
  1344.                    ---------------  --------------------------------------
  1345.                    Handle%          Handle of an existing virtual window.
  1346.  
  1347.                    Completely eradicates an existing window.  If the window
  1348.                    is being displayed, it is removed.  All window memory is
  1349.                    released back to the VirMem%() array.
  1350.  
  1351.          ------------------------------------------------------------------
  1352.          Copyright - SUB
  1353.  
  1354.          ACTION    Displays the ProWindows(tm) standard copyright notice.
  1355.  
  1356.          SYNTAX    Copyright row%, col%
  1357.  
  1358.          REMARKS   This sub accepts the following arguments:
  1359.  
  1360.  
  1361.  
  1362.                 (c) Copyright 1988-1992 DSE Software Publishing
  1363.  
  1364.  
  1365.          ProWindows(tm) LITE - Version 5.00                           2.6
  1366.  
  1367.                    Argument         Description
  1368.                    ---------------  --------------------------------------
  1369.                    row%, col%       Screen position to display the
  1370.                                     copyright message.
  1371.  
  1372.                    The ProWindows licensing agreement discusses when you
  1373.                    are actually required to call this function.
  1374.  
  1375.          ------------------------------------------------------------------
  1376.  
  1377.          DeAllocVirtualBlock - SUB
  1378.  
  1379.          ACTION    Internal to WLS - DO NOT USE
  1380.  
  1381.          SYNTAX    DeAllocVirtualBlock (handle%)
  1382.  
  1383.          REMARKS   Deallocates portion of the VirMem() array allocated by
  1384.                    the AllocVirtualBlock() sub.
  1385.  
  1386.          ------------------------------------------------------------------
  1387.  
  1388.          DisplayWindow  - SUB
  1389.  
  1390.          ACTION    Displays a virtual window.
  1391.  
  1392.          SYNTAX    DisplayWindow handle%, row%, col%, rows%, cols%
  1393.  
  1394.          REMARKS   This sub accepts the following arguments:
  1395.  
  1396.                    Argument         Description
  1397.                    ---------------  --------------------------------------
  1398.                    handle%          Handle of virtual window to display.
  1399.                    row%, col%       Absolute screen position to display the
  1400.                                     window.  A 0 value will automatically
  1401.                                     center the window.
  1402.                    rows%, cols%     Dimension of the window.
  1403.  
  1404.                    Displays a virtual window.  If the window is already on
  1405.                    the display, it is brought to the top.  If the rows% and
  1406.                    cols% are less that the actual physical dimensions of
  1407.                    the window, the displayed contents will be truncated.
  1408.  
  1409.          ------------------------------------------------------------------
  1410.  
  1411.          DrawBox - SUB
  1412.  
  1413.          ACTION    Draws a box within a virtual window.
  1414.  
  1415.          SYNTAX    DrawBox handle%, row%, col%, rows%, cols%, attrib%,
  1416.                            border%
  1417.  
  1418.          REMARKS   This sub accepts the following arguments:
  1419.  
  1420.                    Argument         Description
  1421.                    ---------------  --------------------------------------
  1422.                    handle%          Handle of window to draw box in.
  1423.                    row%, col%       Window position to start box.
  1424.                    rows%, cols%     Dimensions of box.
  1425.                    attrib%          Video attribute of box.
  1426.  
  1427.                 (c) Copyright 1988-1992 DSE Software Publishing
  1428.  
  1429.  
  1430.          ProWindows(tm) LITE - Version 5.00                           2.7
  1431.  
  1432.                    border%          Border style of box (1 thru 12)
  1433.  
  1434.                    Draws a single box within the specified virtual window.
  1435.                    If the window is being displayed, it is NOT
  1436.                    automatically refreshed.  Refreshing should be done
  1437.                    AFTER all boxes have been placed.
  1438.  
  1439.          SEE ALSO  RefreshMain, RefreshAllWindows and RefreshWindow
  1440.  
  1441.          ------------------------------------------------------------------
  1442.  
  1443.          FillScreen - SUB
  1444.  
  1445.          ACTION    Fills an area with specified attribute and character.
  1446.  
  1447.          SYNTAX    FillScreen row%, col%, rows%, cols%, attrib%,
  1448.                               char%, SNOW%
  1449.  
  1450.          REMARKS   This sub accepts the following arguments:
  1451.  
  1452.                    Argument         Description
  1453.                    ---------------  --------------------------------------
  1454.                    row%, col%       Screen position to start the fill.
  1455.                    rows%, cols%     Dimensions of fill area.
  1456.                    attrib%          Video attribute to fill with.
  1457.                    char%            ASCII character to fill with.
  1458.                    SNOW%            The Global Variable SNOW%
  1459.  
  1460.                    Similar to the subroutine MakeWindow().  Fills the
  1461.                    indicated area with an ASCII character using the
  1462.                    indicated attribute.
  1463.  
  1464.                    The final parameter should always be the global variable
  1465.                    SNOW% which determines whether snow suppression will be
  1466.                    used when filling the area.
  1467.  
  1468.          ------------------------------------------------------------------
  1469.  
  1470.          ForceWindow - SUB
  1471.  
  1472.          ACTION    Fast set of the Current Window
  1473.  
  1474.          SYNTAX    ForceWindow handle%
  1475.  
  1476.          REMARKS   This sub accepts the following arguments:
  1477.  
  1478.                    Argument         Description
  1479.                    ---------------  --------------------------------------
  1480.                    handle%          Handle of window to set.
  1481.  
  1482.                    Makes the specified window the main window.  All
  1483.                    ProWindows print statements will be diverted to this
  1484.                    window.  ForceWindow does NOT attempt to determine if
  1485.                    the window actually exists, so use with caution.
  1486.                    SetWindow() is the preferred method.
  1487.  
  1488.          SEE ALSO  SetWindow
  1489.  
  1490.          ------------------------------------------------------------------
  1491.  
  1492.                 (c) Copyright 1988-1992 DSE Software Publishing
  1493.  
  1494.  
  1495.          ProWindows(tm) LITE - Version 5.00                           2.8
  1496.  
  1497.          FREEWINDOW% - FUNCTION
  1498.  
  1499.          ACTION    Returns next available window handle
  1500.  
  1501.          SYNTAX    variablename% = FREEWINDOW
  1502.  
  1503.          REMARKS   Like BASIC's FREEFILE function, this function returns
  1504.                    the next available window handle for a subsequent call
  1505.                    to OpenWindow().
  1506.  
  1507.          -----------------------------------------------------------------
  1508.  
  1509.          GetScreen - SUB
  1510.  
  1511.          ACTION    Saves an area of the screen to memory.
  1512.  
  1513.          SYNTAX    GetScreen row%, col%, rows%, cols%, DataSeg%, DataOff%,
  1514.                              SNOW%
  1515.  
  1516.          REMARKS   This sub accepts the following arguments:
  1517.  
  1518.                    Argument         Description
  1519.                    ---------------  --------------------------------------
  1520.                    row%, col%       Screen position to start copy.
  1521.                    rows%, cols%     Dimensions of copy area.
  1522.                    DataSeg%         Segment address of the storage array.
  1523.                    DataOff%         Offset address of the storage array.
  1524.                    SNOW%            The Global Variable SNOW%
  1525.  
  1526.                    This subroutine bypasses the WLS and grabs a portion of
  1527.                    the current screen at the coordinates supplied and
  1528.                    stores it in memory.  You are responsible to allocate
  1529.                    enough memory to store each screen.
  1530.                    To determine the amount of memory required, use the
  1531.                    formula:
  1532.  
  1533.                    arraysize% = (rows% * cols%) * 2
  1534.  
  1535.                    The final parameter should always be the global variable
  1536.                    SNOW%.
  1537.  
  1538.          SEE ALSO: PutScreen, BASIC Statements VARSEG and VARPTR.
  1539.  
  1540.          ------------------------------------------------------------------
  1541.  
  1542.          GetVirtualPtr% - FUNCTION
  1543.  
  1544.          ACTION    Returns offset address of virtual window.
  1545.  
  1546.          SYNTAX    variablename = GetVirtualPtr (handle%)
  1547.  
  1548.          REMARKS   This function accepts the following argument:
  1549.  
  1550.                    Argument         Description
  1551.                    ---------------  --------------------------------------
  1552.                    handle%          Handle of virtual window.
  1553.  
  1554.                    Returns an integer indicating the subscript within the
  1555.                    global array VirMem%() where the contents of the
  1556.  
  1557.                 (c) Copyright 1988-1992 DSE Software Publishing
  1558.  
  1559.  
  1560.          ProWindows(tm) LITE - Version 5.00                           2.9
  1561.  
  1562.                    specified window is stored.  This can then be used with
  1563.                    BASIC's VARSEG and VARPTR functions to determine it's
  1564.                    location within RAM.
  1565.  
  1566.          ------------------------------------------------------------------
  1567.  
  1568.          GrabWindow - SUB
  1569.  
  1570.          ACTION    Take snap shot of window and stores in window memory.
  1571.  
  1572.          SYNTAX    GrabWindow Handle%
  1573.  
  1574.          REMARKS   This function accepts the following argument:
  1575.  
  1576.                    Argument         Description
  1577.                    ---------------  --------------------------------------
  1578.                    handle%          Handle of virtual window.
  1579.  
  1580.                    GrabWindow() was added for those die-hard programmers
  1581.                    who insist (with good cause) on using the BASIC's built-
  1582.                    in PRINT statement.  Text can be PRINTed on a window and
  1583.                    GrabWindow() will store the image to the window's
  1584.                    memory.
  1585.  
  1586.          ------------------------------------------------------------------
  1587.  
  1588.          HideWindow - SUB
  1589.  
  1590.          ACTION    Hide a virtual window.
  1591.  
  1592.          SYNTAX    HideWindow handle%
  1593.  
  1594.          REMARKS   This sub accepts the following argument:
  1595.  
  1596.                    Argument         Description
  1597.                    ---------------  --------------------------------------
  1598.                    handle%          Handle of virtual window to hide.
  1599.  
  1600.                    Removes the specified virtual window from the screen.
  1601.                    The window is NOT destroyed, and can be re-displayed
  1602.                    using the many WLS functions.
  1603.  
  1604.          SEE ALSO  CloseWindow, DisplayWindow, MainWindow and ShowWindow
  1605.  
  1606.          ------------------------------------------------------------------
  1607.  
  1608.          HotPrint - SUB
  1609.  
  1610.          ACTION    Prints text and highlighted text.
  1611.  
  1612.          SYNTAX    HotPrint row%, col%, attrib1%, text1$, attrib2%, text2$
  1613.  
  1614.          REMARKS   This sub accepts the following arguments:
  1615.  
  1616.                    Argument         Description
  1617.                    ---------------  --------------------------------------
  1618.                    row%, col%       Window position to display text.
  1619.                    attrib1%         Main text video attribute.
  1620.                    text1$           Main text to display.
  1621.  
  1622.                 (c) Copyright 1988-1992 DSE Software Publishing
  1623.  
  1624.  
  1625.          ProWindows(tm) LITE - Version 5.00                           2.10
  1626.  
  1627.                    attrib2%         Sub-text video attribute.
  1628.                    text2$           Sub-text to display.
  1629.  
  1630.                    Displays a line of text, with a specific portion
  1631.                    highlighted.  It's purpose is for displaying key words,
  1632.                    and highlighting it's selector letter.  Text2$ should be
  1633.                    a sub-string of Text1$.
  1634.  
  1635.          ------------------------------------------------------------------
  1636.  
  1637.          IsBWmode% - FUNCTION
  1638.  
  1639.          ACTION    Determines color characteristic of video card
  1640.  
  1641.          SYNTAX    variablename% = IsBWmode%
  1642.  
  1643.          REMARKS   IsBWmode%() is a function that returns a true condition
  1644.                    if the video adaptor is an MDA adaptor, a color adaptor
  1645.                    in BW mode, or if the function SetBWmode() has been
  1646.                    called.
  1647.  
  1648.          ------------------------------------------------------------------
  1649.  
  1650.          InitPro - SUB
  1651.  
  1652.          ACTION    Initializes the Virtual Window Logic System.
  1653.  
  1654.          SYNTAX    InitPro
  1655.  
  1656.          REMARKS   Initializes all features of the Window Manager.  It
  1657.                    should be the first executable statement within all
  1658.                    ProWindows applications.  Failure to do so may cause
  1659.                    your system to lock up.
  1660.  
  1661.          ------------------------------------------------------------------
  1662.  
  1663.          MainWindow - SUB
  1664.  
  1665.          ACTION    Make virtual window top most window.
  1666.  
  1667.          SYNTAX    MainWindow handle%
  1668.  
  1669.          REMARKS   This sub accepts the following argument:
  1670.  
  1671.                    Argument         Description
  1672.                    ---------------  --------------------------------------
  1673.                    Handle%          Handle of virtual window.
  1674.  
  1675.                    Places the specified virtual window on top of all
  1676.                    displayed windows.  If the window is not presently being
  1677.                    displayed, it is displayed using the last (or default)
  1678.                    window dimensions.  The global variable CurrentWindow%
  1679.                    is set to Handle%.
  1680.  
  1681.          ------------------------------------------------------------------
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.                 (c) Copyright 1988-1992 DSE Software Publishing
  1688.  
  1689.  
  1690.          ProWindows(tm) LITE - Version 5.00                           2.11
  1691.  
  1692.          MakeWindow - SUB
  1693.  
  1694.          ACTION    Displays a non-removable window.
  1695.  
  1696.          SYNTAX    MakeWindow Row%, Col%, Rows%, Cols%, Attr%, Border%,
  1697.                               Shadow%, Zoom%, SNOW%
  1698.  
  1699.          REMARKS   This sub accepts the following arguments:
  1700.  
  1701.                    Argument         Description
  1702.                    ---------------  --------------------------------------
  1703.                    row%, col%       Screen position to display the window.
  1704.                    rows%, cols%     Dimensions of window.
  1705.                    Attrib%          Video attribute of new window.
  1706.                    Border%          Border style of new window.
  1707.                    Shadow%          Shadow style of new window.
  1708.                    Zoom%            Zoom style of new window.
  1709.                    SNOW%            The Global Variable SNOW%
  1710.  
  1711.                    MakeWindow() is functionally identical to PopWindow()
  1712.                    except that it completely bypasses the WLS so that your
  1713.                    existing screen is NOT saved, and can NOT be restored,
  1714.                    and all window printing routines are NOT referenced to
  1715.                    this screen.  All printing to this screen must be
  1716.                    accomplished with the standard BASIC statements and/or
  1717.                    the ProWindows functions vprint() and sprint().
  1718.  
  1719.                    The final parameter should always be the global variable
  1720.                    SNOW%.
  1721.  
  1722.          ------------------------------------------------------------------
  1723.  
  1724.          ModifyWindow - SUB
  1725.  
  1726.          ACTION    Change icons available on a window.
  1727.  
  1728.          SYNTAX    ModifyWindow handle%, icons%
  1729.  
  1730.          REMARKS   This sub accepts the following arguments:
  1731.  
  1732.                    Argument         Description
  1733.                    ---------------  --------------------------------------
  1734.                    Handle%          Handle of virtual window.
  1735.                    icons%           Added values of icons to add/delete.
  1736.  
  1737.                    Allows you to add/delete icons on an existing window.
  1738.                    This function does NOT automatically refresh the window.
  1739.  
  1740.          SEE ALSO  OpenWindow
  1741.  
  1742.          ------------------------------------------------------------------
  1743.  
  1744.          MoveWindow - SUB
  1745.  
  1746.          ACTION    Move a virtual window.
  1747.  
  1748.          SYNTAX    MoveWindow handle%, row%, col%
  1749.  
  1750.          REMARKS   This sub accepts the following arguments:
  1751.  
  1752.                 (c) Copyright 1988-1992 DSE Software Publishing
  1753.  
  1754.  
  1755.          ProWindows(tm) LITE - Version 5.00                           2.12
  1756.  
  1757.                    Argument         Description
  1758.                    ---------------  --------------------------------------
  1759.                    Handle%          Handle of virtual window.
  1760.                    row%, col%       Screen position to move the window to.
  1761.  
  1762.                    Moves a displayed virtual window to a new location on
  1763.                    the screen.  The window remains at the same level.
  1764.  
  1765.          ------------------------------------------------------------------
  1766.  
  1767.          OpenWindow - SUB
  1768.  
  1769.          ACTION    Creates a new virtual window.
  1770.  
  1771.          SYNTAX    OpenWindow handle%, rows%, cols%, attrib%, border%,
  1772.                               shadow%, zoom%, icons%
  1773.  
  1774.          REMARKS   This sub accepts the following arguments:
  1775.  
  1776.                    Argument         Description
  1777.                    ---------------  --------------------------------------
  1778.                    handle%          Handle to identify window with.
  1779.                    rows%, cols%     Dimensions of the window.
  1780.                    attrib%          Video attribute of new window.
  1781.                    border%          Border style of new window (0-12).
  1782.                    shadow%          Shadow style of new window (0-4).
  1783.                    zoom%            Zoom style of new window (0-11).
  1784.                    icons            Added icon values (see Section 3).
  1785.  
  1786.                    Creates a brand new virtual window with the specified
  1787.                    characteristics.  The window remains invisible until an
  1788.                    appropriate display function is called.  The global
  1789.                    variable CurrentWindow% is set to the new window's
  1790.                    handle.
  1791.  
  1792.          SEE ALSO  DisplayWindow, FREEWINDOW, PopWindow, and ShowWindow
  1793.  
  1794.          ------------------------------------------------------------------
  1795.  
  1796.          PopSound - SUB
  1797.          RemoveSound - SUB
  1798.  
  1799.          ACTION    Generate sound effects.
  1800.  
  1801.          SYNTAX    PopSound
  1802.                    RemoveSound
  1803.  
  1804.          REMARKS   These are the actual subroutines called when the global
  1805.                    variable SOUNDMODE% is set during the creation or
  1806.                    removal of a pop up window.  You may call these same
  1807.                    functions at your leisure.
  1808.  
  1809.                    Prior to calling either subroutine, set the global
  1810.                    variable SOUNDMODE% to:
  1811.  
  1812.                         SOUND_MODE = 0     (no sound)
  1813.                         SOUND_MODE = 1     (click)
  1814.                         SOUND_MODE = 2     (beep)
  1815.                         SOUND_MODE = 3     (glisando)
  1816.  
  1817.                 (c) Copyright 1988-1992 DSE Software Publishing
  1818.  
  1819.  
  1820.          ProWindows(tm) LITE - Version 5.00                           2.13
  1821.  
  1822.                    Both functions are identical with the exception that
  1823.                    when SOUNDMODE% is set to GLISANDO, RemoveSound() goes
  1824.                    down scale rather than up.
  1825.  
  1826.          ------------------------------------------------------------------
  1827.  
  1828.          PopWindow - SUB
  1829.  
  1830.          ACTION    Creates and displays a new window.
  1831.  
  1832.          SYNTAX    PopWindow Row%, Col%, Rows%, Cols%, Attrib,
  1833.                              Border%, Shadow%, Zoom%
  1834.          REMARKS   This sub accepts the following arguments:
  1835.  
  1836.                    Argument         Description
  1837.                    ---------------  --------------------------------------
  1838.                    row%, col%       Screen position to display the window.
  1839.                    rows%, cols%     Dimensions of window.
  1840.                    attrib%          Video attribute of new window.
  1841.                    border%          Border style of new window.
  1842.                    shadow%          Shadow style of new window.
  1843.                    zoom%            Zoom style of new window.
  1844.  
  1845.                    PopWindow() is used when a stack based windowing
  1846.                    environment is preferred.  For every window created with
  1847.                    PopWindow(), there should later be a matching call to
  1848.                    RemoveWindow().  The global variable CurrentWindow%
  1849.                    holds the handle of the new window.
  1850.  
  1851.          SEE ALSO  OpenWindow and RemoveWindow.
  1852.  
  1853.          ------------------------------------------------------------------
  1854.  
  1855.          PreInit - SUB
  1856.  
  1857.          ACTION    Pre-initializes all unused arrays
  1858.  
  1859.          SYNTAX    PreInit
  1860.  
  1861.          REMARKS   This function solves various external variable
  1862.                    references in the program code so that you will NOT have
  1863.                    to include the $INCLUDE files for functions that are not
  1864.                    being used.  Got that?
  1865.  
  1866.                    PreInit() MUST be called prior to DIMensioning any
  1867.                    program variables
  1868.  
  1869.          ------------------------------------------------------------------
  1870.  
  1871.          PutScreen - SUB
  1872.  
  1873.          ACTION    Restores an area of the screen to stored with GetScreen.
  1874.  
  1875.          SYNTAX    PutScreen row%, col%, rows%, cols%, DataSeg%, DataOff%,
  1876.                              SNOW%
  1877.  
  1878.          REMARKS   This sub accepts the following arguments:
  1879.  
  1880.  
  1881.  
  1882.                 (c) Copyright 1988-1992 DSE Software Publishing
  1883.  
  1884.  
  1885.          ProWindows(tm) LITE - Version 5.00                           2.14
  1886.  
  1887.                    Argument         Description
  1888.                    ---------------  --------------------------------------
  1889.                    row%, col%       Screen position to restore copy.
  1890.                    rows%, cols%     Dimensions of restore area.
  1891.                    DataSeg%         Segment address of storage array.
  1892.                    DataOff%         Offset address of storage array.
  1893.                    SNOW%            The Global Variable SNOW%
  1894.  
  1895.                    This routine restores an area of the screen saved using
  1896.                    GetScreen(). Ideally you would restore the screen at the
  1897.                    same coordinates you copied if from, but you may place
  1898.                    it anywhere on the current screen if you wish.  You may
  1899.                    also place the same screen several times in different
  1900.                    locations as long as you have not modified the original
  1901.                    memory.
  1902.  
  1903.                    The final parameter should always be the global variable
  1904.                    SNOW%.
  1905.  
  1906.          SEE ALSO  GetScreen
  1907.  
  1908.          ------------------------------------------------------------------
  1909.  
  1910.          ReAlignWindow - SUB
  1911.  
  1912.          ACTION    Adjusts view port within a virtual window.
  1913.  
  1914.          SYNTAX    ReAlignWindow handle%, viewrow%, viewcol%
  1915.  
  1916.          REMARKS   This sub accepts the following arguments:
  1917.  
  1918.                    Argument         Description
  1919.                    ---------------  --------------------------------------
  1920.                    handle%          Handle of virtual window.
  1921.                    vrow%, vcol%     Position within the window to view.
  1922.  
  1923.                    Adjusts the view port into a virtual window.  By
  1924.                    adjusting the values, you can permit both vertical and
  1925.                    horizontal scrolling of a window.
  1926.  
  1927.          ------------------------------------------------------------------
  1928.  
  1929.          RecycleMode - SUB
  1930.  
  1931.          ACTION    Permit usage of excess video ram as "scratch" buffer.
  1932.  
  1933.          SYNTAX    RecycleMode mode%
  1934.  
  1935.          REMARKS   This sub accepts the following argument:
  1936.  
  1937.                    Argument         Description
  1938.                    ---------------  --------------------------------------
  1939.                    mode%            0 to disable video recycling.
  1940.                                     1 to enable video recycling.
  1941.  
  1942.                    RecycleMode() allows you to utilize unused (in most
  1943.                    applications) video display RAM as a scratch buffer for
  1944.                    video operations.  Enabling "video recycling" will
  1945.                    typically free up 24K (kilobytes) of system memory, and
  1946.  
  1947.                 (c) Copyright 1988-1992 DSE Software Publishing
  1948.  
  1949.  
  1950.          ProWindows(tm) LITE - Version 5.00                           2.15
  1951.  
  1952.                    increase window manipulation speed.
  1953.  
  1954.                    Video pages 0 and 1 are left to the user, but pages 2
  1955.                    and above are assigned for use by the Window Manager's
  1956.                    internal functions.
  1957.  
  1958.          NOTE      Video recycling is not available on monochrome system
  1959.                    and is automatically disabled.  If the global array
  1960.                    VirMem%() is dimensioned large enough, this should not
  1961.                    interfere with program operation.
  1962.  
  1963.          ------------------------------------------------------------------
  1964.  
  1965.          RefreshAllWindows - SUB
  1966.  
  1967.          ACTION    Updates all windows currently being displayed.
  1968.  
  1969.          SYNTAX    RefreshAllWindows
  1970.  
  1971.          REMARKS   Updates the contents of all virtual windows currently
  1972.                    being displayed.  Their positions are NOT altered.
  1973.  
  1974.          SEE ALSO  RefreshMain and RefreshWindow.
  1975.  
  1976.          ------------------------------------------------------------------
  1977.  
  1978.          RefreshMain - SUB
  1979.  
  1980.          ACTION    Refreshes the top most window.
  1981.  
  1982.          SYNTAX    RefreshMain
  1983.  
  1984.          REMARKS   Updates the contents of the top most window.  It is
  1985.                    considerably faster than all other update functions.
  1986.  
  1987.          SEE ALSO  RefreshAllWindows and RefreshWindow.
  1988.  
  1989.          ------------------------------------------------------------------
  1990.  
  1991.          RefreshMode - SUB
  1992.  
  1993.          ACTION    Enables immediate updating of displayed windows.
  1994.  
  1995.          SYNTAX    RefreshMode mode%
  1996.  
  1997.          REMARKS   This sub accepts the following argument:
  1998.  
  1999.                    Argument         Description
  2000.                    ---------------  --------------------------------------
  2001.                    mode%            0 to disable immediate updating.
  2002.                                     1 to enable immediate updating.
  2003.  
  2004.                    RefreshMode() allows you to turn off screen updating,
  2005.                    and thus save considerable time, when writing large
  2006.                    amounts of data to window(s).  After all information has
  2007.                    been written, you can re-enable the refreshing and call
  2008.                    any of window refreshing functions to update the
  2009.                    display.
  2010.  
  2011.  
  2012.                 (c) Copyright 1988-1992 DSE Software Publishing
  2013.  
  2014.  
  2015.          ProWindows(tm) LITE - Version 5.00                           2.16
  2016.  
  2017.          SEE ALSO  RefreshMain, RefreshAllWindows, and RefreshWindow.
  2018.  
  2019.          ------------------------------------------------------------------
  2020.  
  2021.          RefreshWindow - SUB
  2022.  
  2023.          ACTION    Refreshes the specified window.
  2024.  
  2025.          SYNTAX    RefreshWindow handle%
  2026.  
  2027.          REMARKS   This sub accepts the following argument:
  2028.  
  2029.  
  2030.                    Argument         Description
  2031.                    ---------------  --------------------------------------
  2032.                    handle%          Handle of virtual window to refresh.
  2033.                    Updates the contents of the specified window (and all
  2034.                    windows on top of it).
  2035.  
  2036.          SEE ALSO  RefreshMain and RefreshAllWindows.
  2037.  
  2038.          ------------------------------------------------------------------
  2039.  
  2040.          RemoveWindow - SUB
  2041.  
  2042.          ACTION    Removes current window being displayed.
  2043.  
  2044.          SYNTAX    RemoveWindow
  2045.  
  2046.          REMARKS   Removes current window pointed to by a subscript of the
  2047.                    global array wcbndx%(), specifically wcbndx%(WI%).  The
  2048.                    screen is restored to it's original contents.
  2049.  
  2050.          NOTE      This function is used for stack based windowing.  Each
  2051.                    call to RemoveWindow() should correspond to a previous
  2052.                    call to PopWindow().  Stack based Windows are removed in
  2053.                    reverse order of the way the were created.
  2054.                    CloseWindow() is the preferred method of removing
  2055.                    windows.
  2056.  
  2057.          SEE ALSO: CloseWindow, HideWindow, OpenWindow and PopWindow
  2058.  
  2059.          ------------------------------------------------------------------
  2060.  
  2061.          ResizeWindow - SUB
  2062.  
  2063.          ACTION    Re-sizes displayed portion of a window.
  2064.  
  2065.          SYNTAX    ResizeWindow handle%, rows%, cols%
  2066.  
  2067.          REMARKS   This sub accepts the following arguments:
  2068.  
  2069.                    Argument         Description
  2070.                    ---------------  --------------------------------------
  2071.                    handle%          Handle of window to re-size.
  2072.                    rows%, cols%     New dimensions of window.
  2073.  
  2074.                    Re-dimensions the viewable portion of a virtual window.
  2075.                    The internal contents of the window are NOT affected.
  2076.  
  2077.                 (c) Copyright 1988-1992 DSE Software Publishing
  2078.  
  2079.  
  2080.          ProWindows(tm) LITE - Version 5.00                           2.17
  2081.  
  2082.          RestoreWindow - SUB
  2083.  
  2084.          ACTION    Internal to Window Manager - DO NOT USE
  2085.  
  2086.          SYNTAX    RestoreWindow
  2087.  
  2088.          REMARKS   Removes a window from the internal window stack, frees
  2089.                    allocated memory, and updates the display.  Its workings
  2090.                    are controlled by internal variables and it should never
  2091.                    be called.
  2092.  
  2093.          ------------------------------------------------------------------
  2094.  
  2095.          ScanHandle% - FUNCTION
  2096.  
  2097.          ACTION    Determine if a window handle is in use.
  2098.  
  2099.          SYNTAX    variablename% = ScanHandle(handle%)
  2100.  
  2101.          REMARKS   This function accepts the following argument:
  2102.  
  2103.                    Argument         Description
  2104.                    ---------------  --------------------------------------
  2105.                    handle%          Handle of window to detect.
  2106.  
  2107.                    Returns handle% if the window exists, or returns 0 if
  2108.                    the window does not exist.
  2109.  
  2110.          ------------------------------------------------------------------
  2111.  
  2112.          ScanVirtualBlock% - FUNCTION
  2113.  
  2114.          ACTION    Internal to Window Manager - DO NOT USE
  2115.  
  2116.          SYNTAX    variablename% = ScanVirtualBlock (block%)
  2117.  
  2118.          REMARKS   Returns an integer pointing to an internal memory
  2119.                    control block (MCB).
  2120.  
  2121.          ------------------------------------------------------------------
  2122.  
  2123.          ScreenMode% - FUNCTION
  2124.  
  2125.          ACTION    Returns current DOS screen mode.
  2126.  
  2127.          SYNTAX    variablename% = ScreenMode%
  2128.  
  2129.          REMARKS   This function returns the current DOS screen mode.
  2130.  
  2131.          -----------------------------------------------------------------
  2132.  
  2133.          SetBorderColor - SUB
  2134.  
  2135.          ACTION    Set window border coloring scheme.
  2136.  
  2137.          SYNTAX    SetBorderColor mode%, attrib%
  2138.  
  2139.          REMARKS   This function accepts the following argument(s):
  2140.  
  2141.  
  2142.                 (c) Copyright 1988-1992 DSE Software Publishing
  2143.  
  2144.  
  2145.          ProWindows(tm) LITE - Version 5.00                           2.18
  2146.  
  2147.                    Argument         Description
  2148.                    ---------------  --------------------------------------
  2149.                    mode%            0 - Use window color.
  2150.                                     1 - Assume window background color.
  2151.                                     2 - use attrib%.
  2152.                    attrib%          Color of border when mode is 2.
  2153.  
  2154.                    This routine defines the coloring scheme of window
  2155.                    borders.  A window's border color by default is the same
  2156.                    color as the window itself.  This routine will allow you
  2157.                    to set a single border color for all windows, or make
  2158.                    the border's foreground color match the background color
  2159.                    of the window.
  2160.  
  2161.          -----------------------------------------------------------------
  2162.  
  2163.          SetBWmode - SUB
  2164.  
  2165.          ACTION    Puts color adaptors into simulated monochrome mode.
  2166.  
  2167.          SYNTAX    SetBWmode mode%
  2168.  
  2169.          REMARKS   This function accepts the following argument(s):
  2170.  
  2171.                    Argument         Description
  2172.                    ---------------  --------------------------------------
  2173.                    mode%            0 = normal.
  2174.                                     1 = simulate monochrome.
  2175.  
  2176.                    Instructs all ProWindows functions to assume a simulated
  2177.                    monochrome mode.  Colors are converted to BW equivalents
  2178.                    based on an internal conversion table.  This colors are
  2179.                    identical across all monitor types.
  2180.  
  2181.          SEE ALSO  SetBWmode and SetMonitorColor.
  2182.  
  2183.          ------------------------------------------------------------------
  2184.  
  2185.          SetCompressMode - SUB
  2186.  
  2187.          ACTION    Internal to Window Manager - DO NOT USE
  2188.  
  2189.          SYNTAX    SetCompressMode mode%
  2190.  
  2191.          REMARKS   Used by Menu Logic System (MLS) to disable screen
  2192.                    compression on menu windows.  This causes an increase of
  2193.                    memory usage, but speeds up display time considerably.
  2194.                    This function is internally controlled and should never
  2195.                    be called.
  2196.  
  2197.          ------------------------------------------------------------------
  2198.  
  2199.          SetMonitorColor - SUB
  2200.  
  2201.          ACTION    Change color of simulated monochrome mode
  2202.  
  2203.          SYNTAX    SetMonitorColor kolor%
  2204.  
  2205.          REMARKS   This function accepts the following argument:
  2206.  
  2207.                 (c) Copyright 1988-1992 DSE Software Publishing
  2208.  
  2209.  
  2210.          ProWindows(tm) LITE - Version 5.00                           2.19
  2211.  
  2212.                    Argument         Description
  2213.                    ---------------  --------------------------------------
  2214.                    kolor%           1 = Blue
  2215.                                     2 = Green
  2216.                                     3 = Cyan
  2217.                                     4 = Red
  2218.                                     5 = Magenta
  2219.                                     6 = Amber
  2220.                                     7 = White
  2221.  
  2222.                    Changes the display attribute when in a simulated
  2223.                    monochrome mode.
  2224.  
  2225.          SEE ALSO  IsBWmode and SetBWmode.
  2226.  
  2227.          ------------------------------------------------------------------
  2228.  
  2229.          SetShadow - SUB
  2230.  
  2231.          ACTION    Set window shadow coloring scheme.
  2232.  
  2233.          SYNTAX    SetShadow attribute%, char%
  2234.  
  2235.          REMARKS   This sub accepts the following arguments:
  2236.  
  2237.                    Argument         Description
  2238.                    ---------------  --------------------------------------
  2239.                    attribute%       Value  Description
  2240.                                     -----  -------------------------------
  2241.                                         0  Black shadow.
  2242.                                     1-255  Attribute color.
  2243.                                        -1  Use window foreground color.
  2244.                                        -2  Use window background color.
  2245.  
  2246.                    char%            Value  Description
  2247.                                     -----  -------------------------------
  2248.                                     0-255  Use ASCII character.
  2249.                                        -1  Transparent shadow.
  2250.  
  2251.                    This routine defines the coloring scheme of window
  2252.                    shadows.  A window's shadow color by default is flat
  2253.                    black.  The routine will allow you to create transparent
  2254.                    shadows that match the color of the window, or are
  2255.                    inverse from the color of the beneath text.  The
  2256.                    following produces the most natural looking shadow:
  2257.  
  2258.                         SetShadow -2, -1
  2259.  
  2260.          ------------------------------------------------------------------
  2261.  
  2262.          SetWindow - SUB
  2263.  
  2264.          ACTION    Sets the Current Window
  2265.  
  2266.          SYNTAX    SetWindow handle%
  2267.  
  2268.          REMARKS   This sub accepts the following arguments:
  2269.  
  2270.  
  2271.  
  2272.                 (c) Copyright 1988-1992 DSE Software Publishing
  2273.  
  2274.  
  2275.          ProWindows(tm) LITE - Version 5.00                           2.20
  2276.  
  2277.                    Argument         Description
  2278.                    ---------------  --------------------------------------
  2279.                    handle%          Handle of window to set.
  2280.  
  2281.                    Makes the specified window the current window.  The
  2282.                    global variable CurrentWindow% is set to handle% and all
  2283.                    ProWindows print statements will be diverted to this
  2284.                    window.  If the window does not exist, an error message
  2285.                    is displayed and the program halted.
  2286.  
  2287.          SEE ALSO  ForceWindow
  2288.  
  2289.          ------------------------------------------------------------------
  2290.  
  2291.          SetZoomSpeed - SUB
  2292.  
  2293.          ACTION    Sets expansion rate of a zoomed window.
  2294.  
  2295.          SYNTAX    SetZoomSpeed mseconds%
  2296.  
  2297.          REMARKS   This sub accepts the following arguments:
  2298.  
  2299.                    Argument         Description
  2300.                    ---------------  --------------------------------------
  2301.                    mseconds%        Delay in milli-seconds.
  2302.  
  2303.                    Defines the delay time between frames of a zoomed
  2304.                    window.  This time is constant regardless of CPU type or
  2305.                    clock speed.  The default speed is 25 milli-seconds.
  2306.  
  2307.          ------------------------------------------------------------------
  2308.  
  2309.          SetZoomStyle - SUB
  2310.  
  2311.          ACTION    Sets the virtual paging mode of zoomed windows.
  2312.  
  2313.          SYNTAX    SetZoomStyle mode%
  2314.  
  2315.          REMARKS   This sub accepts the following arguments:
  2316.  
  2317.                    Argument         Description
  2318.                    ---------------  --------------------------------------
  2319.                    mode%            0 = DO NOT USE
  2320.                                     1 = Open Viewport
  2321.                                     2 = Wipe
  2322.  
  2323.                    Defines how windows look when the are zoomed onto the
  2324.                    display.  Mode 1 opens the window onto an existing scene
  2325.                    (like opening a door).  Mode 2 wipe the new window
  2326.                    across the existing display.
  2327.  
  2328.          ------------------------------------------------------------------
  2329.  
  2330.          SetWindowMinSize - SUB
  2331.  
  2332.          ACTION    Defines the minimum displayable dimensions of a window.
  2333.  
  2334.          SYNTAX    SetWindowMinSize handle%, rows%, cols%
  2335.  
  2336.  
  2337.                 (c) Copyright 1988-1992 DSE Software Publishing
  2338.  
  2339.  
  2340.          ProWindows(tm) LITE - Version 5.00                           2.21
  2341.  
  2342.          REMARKS   This sub accepts the following arguments:
  2343.  
  2344.                    Argument         Description
  2345.                    ---------------  --------------------------------------
  2346.                    handle%          Handle of window to define.
  2347.                    rows%, cols%     Minimum dimensions of window.
  2348.  
  2349.                    Defines the minimum dimensions a window can be set to
  2350.                    using the mouse.  This function causes self-correction
  2351.                    of invalid dimensions.
  2352.  
  2353.          ------------------------------------------------------------------
  2354.  
  2355.          ShowVLSmemory - SUB
  2356.  
  2357.          ACTION    Internal to Window Manager - DO NOT USE
  2358.  
  2359.          SYNTAX    ShowVLSmemory.
  2360.  
  2361.          REMARKS   Displays the number of windows being displayed, and the
  2362.                    amounts of window stack memory and virtual window memory
  2363.                    being used.  Displayed automatically when the global
  2364.                    variable CreateMode% is set.
  2365.  
  2366.          ------------------------------------------------------------------
  2367.  
  2368.          ShowWindow - SUB
  2369.  
  2370.          ACTION    Displays the current window.
  2371.  
  2372.          SYNTAX    ShowWindow row%, col%, rows%, cols%, vrow%, vcol%
  2373.  
  2374.          REMARKS   This sub accepts the following arguments:
  2375.  
  2376.                    Argument         Description
  2377.                    ---------------  --------------------------------------
  2378.                    row%, col%       Screen position to display the window.
  2379.                    rows%, cols%     Dimensions of window.
  2380.                    vrow%, vcol%     Veiwport position within window.
  2381.  
  2382.                    Displays the window pointed to by the global variable
  2383.                    CurrentWindow%.
  2384.  
  2385.          SEE ALSO  DisplayWindow
  2386.  
  2387.          ------------------------------------------------------------------
  2388.  
  2389.          sprint - SUB
  2390.  
  2391.          ACTION    Displays text on the current screen - sideways
  2392.  
  2393.          SYNTAX    sprint row%, col%, attrib%, Text$, SNOW%
  2394.  
  2395.          REMARKS   This sub accepts the following arguments:
  2396.  
  2397.                    Argument         Description
  2398.                    ---------------  --------------------------------------
  2399.                    row%, col%       Screen position of text to display.
  2400.                    attrib%          Video attribute of text.
  2401.  
  2402.                 (c) Copyright 1988-1992 DSE Software Publishing
  2403.  
  2404.  
  2405.          ProWindows(tm) LITE - Version 5.00                           2.22
  2406.  
  2407.                    Text$            String literal to display.
  2408.                    SNOW%            The Global Variable SNOW%
  2409.  
  2410.                    Places text at the specified position on the current
  2411.                    screen, vertically rather than horizontally.
  2412.  
  2413.                    This subroutine is a low level routine that writes text
  2414.                    directly to video memory.  The coordinates supplied are
  2415.                    the actual screen coordinates and are NOT referenced to
  2416.                    any current pop up window being displayed.  This routine
  2417.                    also provides absolutely NO error correction so you must
  2418.                    see that text does not run off the bottom of the page.
  2419.  
  2420.                    The final parameter should always be the global variable
  2421.                    SNOW%.
  2422.  
  2423.          SEE ALSO  vprint
  2424.  
  2425.          ------------------------------------------------------------------
  2426.  
  2427.          StoreWindow - SUB
  2428.  
  2429.          ACTION    Internal to Window Manager - DO NOT USE
  2430.  
  2431.          SYNTAX    StoreWindow row%, col%, rows%, cols%, shadow%
  2432.  
  2433.          REMARKS   This is a low level function that saves screen fragments
  2434.                    in the window stack.
  2435.  
  2436.          ------------------------------------------------------------------
  2437.  
  2438.          TitleWindow - SUB
  2439.  
  2440.          ACTION    Places specified text at any of eight border locations.
  2441.  
  2442.          SYNTAX    TitleWindow titlepos%, Text$
  2443.  
  2444.          REMARKS   This sub accepts the following arguments:
  2445.  
  2446.                    Argument         Description
  2447.                    ---------------  --------------------------------------
  2448.                    titlepos%        window border location to print title.
  2449.                    text$            String literal of title to display.
  2450.  
  2451.                    A title is placed on the window pointed to by the global
  2452.                    variable CurrentWindow%.  Foreground and background
  2453.                    colors are set to the default for that particular
  2454.                    window.
  2455.  
  2456.                    The eight permitted title positions are :
  2457.  
  2458.                         1 - Top Left.
  2459.                         2 - Top Center.
  2460.                         3 - Top Right.
  2461.                         4 - Bottom Left.
  2462.                         5 - Bottom Center.
  2463.                         6 - Bottom Right.
  2464.                         7 - Center Left Border.
  2465.                         8 - Center Right Border.
  2466.  
  2467.                 (c) Copyright 1988-1992 DSE Software Publishing
  2468.  
  2469.  
  2470.          ProWindows(tm) LITE - Version 5.00                           2.23
  2471.  
  2472.          UNATTR - SUB
  2473.  
  2474.          ACTION    Separates an integer attribute into its individual
  2475.                    components.
  2476.  
  2477.          SYNTAX    unattr attribute%, fore%, back%
  2478.  
  2479.          REMARKS   The video attribute to be separated is passed in the
  2480.                    attribute% argument, and the separated attribute is
  2481.                    returned in foreground% and background%.
  2482.  
  2483.          ------------------------------------------------------------------
  2484.  
  2485.          UNBINATTR - SUB
  2486.  
  2487.          ACTION    Separates an integer attribute into its individual
  2488.                    components and flags.
  2489.          SYNTAX    unbinattr attribute%, fore%, back%, highlight%, blink%
  2490.  
  2491.          REMARKS   The video attribute to be separated is passed in the
  2492.                    attribute% argument, and the separated attribute is
  2493.                    returned in fore%, back%, highlight%, and blink%.
  2494.  
  2495.          ------------------------------------------------------------------
  2496.  
  2497.          UpdateScrollBars - SUB
  2498.  
  2499.          ACTION    Updates a window scroll bars.
  2500.  
  2501.          SYNTAX    UpdateScrollBars
  2502.  
  2503.          REMARKS   Updates the position of the current windows scrollbars
  2504.                    based on the contents of the global array elements
  2505.                    vcb().VertPos% and vcb().VertPos%.
  2506.  
  2507.          ------------------------------------------------------------------
  2508.  
  2509.          ValidateWindow - SUB
  2510.  
  2511.          ACTION    Internal to Window Manager - DO NOT USE
  2512.  
  2513.          SYNTAX    ValidateWindow row%, col%, rows%, cols%
  2514.  
  2515.          REMARKS   This function makes sure that all window coordinates are
  2516.                    valid at display time.
  2517.  
  2518.          ------------------------------------------------------------------
  2519.  
  2520.          VideoBoard% - FUNCTION
  2521.  
  2522.          ACTION    Returns current video adapter card type
  2523.  
  2524.          SYNTAX    variablename% = VideoBoard%
  2525.  
  2526.          REMARKS   This function returns the current video adapter card
  2527.                    type.  Possible values are:
  2528.  
  2529.                         0 = MDA
  2530.                         1 = CGA
  2531.  
  2532.                 (c) Copyright 1988-1992 DSE Software Publishing
  2533.  
  2534.  
  2535.          ProWindows(tm) LITE - Version 5.00                           2.24
  2536.  
  2537.                         2 = EGA
  2538.                         3 = MCGA
  2539.                         4 = VGA
  2540.                         5 = VGA Monochrome
  2541.  
  2542.          -----------------------------------------------------------------
  2543.  
  2544.          VideoPage - FUNCTION
  2545.  
  2546.          ACTION    Ruturns the current screen video page.
  2547.  
  2548.          SYNTAX    variablename% = VideoPage%
  2549.  
  2550.          REMARKS   This function returns the current screen video page and
  2551.                    can range from 0 to 7 depending on the adapter type.
  2552.  
  2553.          -----------------------------------------------------------------
  2554.  
  2555.          VideoPageLen - FUNCTION
  2556.  
  2557.          ACTION    Returns the current video page length.
  2558.  
  2559.          SYNTAX    variablename% = VideoPageLen%
  2560.  
  2561.          REMARKS   This function returns the length (in bytes) of a single
  2562.                    video page.  This value will vary with the adapter type
  2563.                    and the number of displayed lines.  Monochrome cards
  2564.                    incorrectly return 16384.
  2565.  
  2566.          -----------------------------------------------------------------
  2567.  
  2568.          vprint - SUB
  2569.  
  2570.          ACTION    Displays text on the current screen.
  2571.  
  2572.          SYNTAX    vprint row%, col%, attrib%, Text$, SNOW%
  2573.  
  2574.          REMARKS   This sub accepts the following arguments:
  2575.  
  2576.                    Argument         Description
  2577.                    ---------------  --------------------------------------
  2578.                    row%, col%       Screen position of text to display.
  2579.                    attrib%          Video attribute of text.
  2580.                    Text$            String literal to display.
  2581.                    SNOW%            The Global Variable SNOW%
  2582.  
  2583.                    This subroutine is a low level routine that writes text
  2584.                    directly to video memory.  The coordinates supplied are
  2585.                    the actual screen coordinates and are NOT referenced to
  2586.                    any current pop up window being displayed.  This routine
  2587.                    also provides absolutely NO error correction so you must
  2588.                    see that text does not run off the bottom of the page.
  2589.  
  2590.                    The final parameter should always be the global variable
  2591.                    SNOW%.
  2592.  
  2593.          SEE ALSO  sprint
  2594.  
  2595.          ------------------------------------------------------------------
  2596.  
  2597.                 (c) Copyright 1988-1992 DSE Software Publishing
  2598.  
  2599.  
  2600.          ProWindows(tm) LITE - Version 5.00                           2.25
  2601.  
  2602.          WhatWindow% - FUNCTION
  2603.  
  2604.          ACTION    Returns handle of window at given location.
  2605.  
  2606.          SYNTAX    variablename% = WhatWindow(Row, Col)
  2607.  
  2608.          REMARKS   This sub accepts the following arguments:
  2609.  
  2610.                    Argument         Description
  2611.                    ---------------  --------------------------------------
  2612.                    row%, col%       Internal position of any window.
  2613.  
  2614.                    Returns the handle of the window at the given screen
  2615.                    coordinates.
  2616.  
  2617.          ------------------------------------------------------------------
  2618.  
  2619.          winCLS - SUB
  2620.  
  2621.          ACTION    Clears out the contents of the specified window.
  2622.  
  2623.          SYNTAX    winCLS
  2624.  
  2625.          REMARKS   This sub accepts the following argument:
  2626.  
  2627.                    Argument         Description
  2628.                    ---------------  --------------------------------------
  2629.                    winHandle%       Window handle to clear.
  2630.  
  2631.                    This function clears out the contents of the specified
  2632.                    virtual window and resets the cursor to the top left
  2633.                    position on the window.
  2634.  
  2635.          SEE ALSO  CDEMO.BAS
  2636.  
  2637.          ------------------------------------------------------------------
  2638.  
  2639.          winColor - SUB
  2640.  
  2641.          ACTION    Changes the current working colors.
  2642.  
  2643.          SYNTAX    winColor winHandle%, Fore%, Back%
  2644.  
  2645.          REMARKS   This sub accepts the following arguments:
  2646.  
  2647.                    Argument         Description
  2648.                    ---------------  --------------------------------------
  2649.                    winHandle%       Window handle to change colors.
  2650.                    Fore%            The foreground color ranging 0 to 31.
  2651.                    Back%            The background color ranging 0 to 15.
  2652.  
  2653.                    This function sets the current working colors to the
  2654.                    specified foreground and background attributes.  All
  2655.                    subsequent winPrint() calls to that window will print
  2656.                    with these attributes.
  2657.  
  2658.          SEE ALSO  CDEMO.BAS
  2659.  
  2660.          ------------------------------------------------------------------
  2661.  
  2662.                 (c) Copyright 1988-1992 DSE Software Publishing
  2663.  
  2664.  
  2665.          ProWindows(tm) LITE - Version 5.00                           2.26
  2666.  
  2667.          winDeleteLine - SUB
  2668.  
  2669.          ACTION    Deletes line at cursor position
  2670.  
  2671.          SYNTAX    winDeleteLine winHandle%
  2672.  
  2673.          REMARKS   This sub accepts the following argument:
  2674.  
  2675.                    Argument         Description
  2676.                    ---------------  --------------------------------------
  2677.                    winHandle%       Window handle where line is.
  2678.  
  2679.                    This function deletes the line at the current window
  2680.                    position.  If the line is within the current window
  2681.                    viewport, the screen is automatically updated.
  2682.  
  2683.          SEE ALSO  CDEMO.BAS
  2684.  
  2685.          ------------------------------------------------------------------
  2686.  
  2687.          wiInsertLine - SUB
  2688.  
  2689.          ACTION    Inserts a blank line at cursor position.
  2690.  
  2691.          SYNTAX    winInsertLine winHandle%
  2692.  
  2693.          REMARKS   This sub accepts the following argument:
  2694.  
  2695.                    Argument         Description
  2696.                    ---------------  --------------------------------------
  2697.                    winHandle%       Window handle where to insert.
  2698.  
  2699.                    This function inserts a blank line at the current window
  2700.                    position.  If the line is within the current window
  2701.                    viewport, the screen is automatically updated.
  2702.  
  2703.          SEE ALSO  CDEMO.BAS
  2704.  
  2705.          ------------------------------------------------------------------
  2706.  
  2707.          winLocate - SUB
  2708.  
  2709.          ACTION    Repositions the cursor within a window.
  2710.  
  2711.          SYNTAX    winLocate winHandle%, row%, col%
  2712.  
  2713.          REMARKS   This sub accepts the following arguments:
  2714.  
  2715.                    Argument         Description
  2716.                    ---------------  --------------------------------------
  2717.                    winHandle%       Window handle.
  2718.                    row%, col%       Window position to move cursor to.
  2719.  
  2720.                    This function moves the cursor to the specified location
  2721.                    within the virtual window.  If the line is within the
  2722.                    current window viewport, the cursor is displayed,
  2723.                    otherwise it is disabled.
  2724.  
  2725.          SEE ALSO  CDEMO.BAS
  2726.  
  2727.                 (c) Copyright 1988-1992 DSE Software Publishing
  2728.  
  2729.  
  2730.          ProWindows(tm) LITE - Version 5.00                           2.27
  2731.  
  2732.          winPos - SUB
  2733.  
  2734.          ACTION    Returns the cursor position within a window.
  2735.  
  2736.          SYNTAX    winPos winHandle%, row%, col%
  2737.  
  2738.          REMARKS   This sub accepts the following arguments:
  2739.  
  2740.                    Argument         Description
  2741.                    ---------------  --------------------------------------
  2742.                    winHandle%       Window handle.
  2743.                    row%, cols%      Current cursor position.
  2744.  
  2745.                    This function returns the current cursor position within
  2746.                    the specified window.
  2747.  
  2748.          ------------------------------------------------------------------
  2749.  
  2750.          winPrint - SUB
  2751.  
  2752.          ACTION    Prints a line of text at the window cursor position.
  2753.  
  2754.          SYNTAX    winPrint winHandle%, Text$
  2755.  
  2756.          REMARKS   This sub accepts the following arguments:
  2757.  
  2758.                    Argument         Description
  2759.                    ---------------  --------------------------------------
  2760.                    winHandle%       Window handle to print to.
  2761.                    Text$            Text string to print.
  2762.  
  2763.                    This function prints a line of text at the current
  2764.                    cursor position.  The cursor is then advanced to the end
  2765.                    of the printed text. If the line is within the current
  2766.                    window viewport, the screen is automatically updated.
  2767.  
  2768.          SEE ALSO  winColor, winPrintLn, CDEMO.BAS
  2769.  
  2770.          ------------------------------------------------------------------
  2771.  
  2772.          winPrintCR - SUB
  2773.  
  2774.          ACTION    Sends a carriage return to a window.
  2775.  
  2776.          SYNTAX    winPrintCR winHandle%
  2777.  
  2778.          REMARKS   This sub accepts the following argument:
  2779.  
  2780.                    Argument         Description
  2781.                    ---------------  --------------------------------------
  2782.                    winHandle%       Window handle to print to.
  2783.  
  2784.                    This function sends a carriage return to the specified
  2785.                    virtual window.  The cursor then moves to the beginning
  2786.                    of the current line.  If the line is within the current
  2787.                    window viewport, the screen is automatically updated.
  2788.  
  2789.          SEE ALSO  CDEMO.BAS
  2790.  
  2791.  
  2792.                 (c) Copyright 1988-1992 DSE Software Publishing
  2793.  
  2794.  
  2795.          ProWindows(tm) LITE - Version 5.00                           2.28
  2796.  
  2797.          winPrintCRLF - SUB
  2798.  
  2799.          ACTION    Sends a carriage return / linefeed pair to a window.
  2800.  
  2801.          SYNTAX    winPrintCRLF winHandle%
  2802.  
  2803.          REMARKS   This sub accepts the following argument:
  2804.                    Argument         Description
  2805.                    ---------------  --------------------------------------
  2806.                    winHandle%       Window handle to print to.
  2807.  
  2808.                    This function sends a carriage return / linefeed pair to
  2809.                    the specified virtual window.  The cursor is advanced to
  2810.                    the first column of the next line.  If the line is
  2811.                    within the current window viewport, the screen is
  2812.                    automatically updated.
  2813.  
  2814.          SEE ALSO  CDEMO.BAS
  2815.  
  2816.          ------------------------------------------------------------------
  2817.  
  2818.          winPrintLF - SUB
  2819.  
  2820.          ACTION    Sends a linefeed to a window.
  2821.  
  2822.          SYNTAX    winPrintLF winHandle%
  2823.  
  2824.          REMARKS   This sub accepts the following argument:
  2825.  
  2826.                    Argument         Description
  2827.                    ---------------  --------------------------------------
  2828.                    winHandle%       Window handle to print to.
  2829.  
  2830.                    This function sends a linefeed to the specified virtual
  2831.                    window.  The cursor advances to the current columns
  2832.                    position of the next line.  If the line is within the
  2833.                    current window viewport, the screen is automatically
  2834.                    updated.
  2835.  
  2836.          SEE ALSO  CDEMO.BAS
  2837.  
  2838.          ------------------------------------------------------------------
  2839.  
  2840.          winPrintLN - SUB
  2841.  
  2842.          ACTION    Prints a line of text at the window cursor position.
  2843.  
  2844.          SYNTAX    winPrintLn winHandle%, Text$
  2845.  
  2846.          REMARKS   This sub accepts the following argument:
  2847.  
  2848.                    Argument         Description
  2849.                    ---------------  --------------------------------------
  2850.                    winHandle%       Window handle to print to.
  2851.                    Text$            Text string to print.
  2852.  
  2853.                    This function prints a line of text at the current
  2854.                    window cursor position.  The cursor is then advanced to
  2855.                    the first column of the next line. If the line is within
  2856.  
  2857.                 (c) Copyright 1988-1992 DSE Software Publishing
  2858.  
  2859.  
  2860.          ProWindows(tm) LITE - Version 5.00                           2.29
  2861.  
  2862.                    the current window viewport, the screen is automatically
  2863.                    updated.
  2864.  
  2865.          SEE ALSO  winColor, winPrint, CDEMO.BAS
  2866.  
  2867.          ------------------------------------------------------------------
  2868.  
  2869.          winPrintNum - SUB
  2870.  
  2871.          ACTION    Prints formatted numeric data within a window.
  2872.  
  2873.          SYNTAX    winPrintNum winHandle%, format$, Value#
  2874.  
  2875.          REMARKS   This sub accepts the following arguments:
  2876.  
  2877.                    Argument         Description
  2878.                    ---------------  --------------------------------------
  2879.                    winHandle%       Window handle to print to.
  2880.                    format$          Numeric format (See PRINT USING)
  2881.                    Value#           Numeric value to print.
  2882.  
  2883.                    This function prints a formatted numeric value at the
  2884.                    current cursor position.  The cursor is then advanced to
  2885.                    the end of the printed text. If the line is within the
  2886.                    current window viewport, the screen is automatically
  2887.                    updated.
  2888.  
  2889.          SEE ALSO  winPrint, PRINT USING, CDEMO.BAS
  2890.  
  2891.          ------------------------------------------------------------------
  2892.  
  2893.          wlocate - SUB
  2894.  
  2895.          ACTION    Relocate cursor within a window
  2896.  
  2897.          SYNTAX    wlocate row%, col%
  2898.  
  2899.          REMARKS   This sub accepts the following arguments:
  2900.  
  2901.                    Argument         Description
  2902.                    ---------------  --------------------------------------
  2903.                    row%, col%       internal position of current window.
  2904.  
  2905.                    Moves the cursor in reference to the internal
  2906.                    coordinates of the current window.
  2907.  
  2908.          SEE ALSO  CDEMO.BAS
  2909.  
  2910.          ------------------------------------------------------------------
  2911.  
  2912.          WPRINT   - SUB
  2913.          CWPRINT  - SUB
  2914.          WCPRINT  - SUB
  2915.          CWCPRINT - SUB
  2916.  
  2917.          ACTION    Places text in the current window.
  2918.  
  2919.          SYNTAX    wprint row%, col%, text$
  2920.                    cwprint row%, col%, attrib%, text$
  2921.  
  2922.                 (c) Copyright 1988-1992 DSE Software Publishing
  2923.  
  2924.  
  2925.          ProWindows(tm) LITE - Version 5.00                           2.30
  2926.  
  2927.                    wcprint row%, text$
  2928.                    cwcprint row%, attrib%, text$
  2929.  
  2930.          REMARKS   These functions accept two or more of the following
  2931.                    arguments:
  2932.  
  2933.                    Argument         Description
  2934.                    ---------------  --------------------------------------
  2935.                    row%, col%       internal position of current window.
  2936.                    attrib%          Video attribute of text to display.
  2937.                    Text$            String literal to display.
  2938.  
  2939.                    These functions print text to the window pointed to by
  2940.                    the global variable CurrentWindow%.  The window contents
  2941.                    are NOT automatically refreshed unless the window is the
  2942.                    top most window AND window refreshing is enabled.
  2943.                    wprint assumes that the text is to be displayed in the
  2944.                    default colors for that window.  cwprint allows you to
  2945.                    specify exact colors.  wcprint and cwcprint are the same
  2946.                    except that the text is automatically centered within
  2947.                    the current window so you need not specify a column.
  2948.  
  2949.          SEE ALSO  RefreshMode and RefreshWindow.
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.  
  2982.  
  2983.  
  2984.  
  2985.  
  2986.  
  2987.                 (c) Copyright 1988-1992 DSE Software Publishing
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.                   #####  ##   ##   ###   ###### ###### ###### ######
  3007.                  ##   ## ##   ## ##   ## ##   ##  ##   ##     ##   ##
  3008.                  ##      ##   ## ##   ## ##   ##  ##   ##     ##   ##
  3009.                  ##      ####### ####### ######   ##   #####  ######
  3010.                  ##      ##   ## ##   ## ##       ##   ##     ## ##
  3011.                  ##   ## ##   ## ##   ## ##       ##   ##     ##  ##
  3012.                   #####  ##   ## ##   ## ##       ##   ###### ##   ##
  3013.  
  3014.                         ###### ##   ## ######  ###### ######
  3015.                           ##   ##   ## ##   ## ##     ##
  3016.                           ##   ##   ## ##   ## ##     ##
  3017.                           ##   ####### ######  #####  #####
  3018.                           ##   ##   ## ## ##   ##     ##
  3019.                           ##   ##   ## ##  ##  ##     ##
  3020.                           ##   ##   ## ##   ## ###### ######
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045.  
  3046.  
  3047.  
  3048.  
  3049.  
  3050.  
  3051.                 (c) Copyright 1988-1992 DSE Software Publishing
  3052.  
  3053.  
  3054.          ProWindows(tm) LITE - Version 5.00                           3.1
  3055.  
  3056.          SECTION 1 - MOUSE OVERVIEW
  3057.          =================================================================
  3058.  
  3059.               Typical mouse oriented programs, like the QuickBASIC
  3060.               environment, respond when you click the mouse in certain
  3061.               areas of the screen.  Without a good mouse manager, writing a
  3062.               mouse application can be quite an effort.
  3063.  
  3064.               ProWindows makes mouse programming easy.  With a single
  3065.               function call you can add complete event-driven mouse support
  3066.               to your windows, menus, and input forms.
  3067.  
  3068.               ProWindows(tm) includes two separate mouse drivers.  You can
  3069.               select either one while customizing your library in
  3070.               DESIGNER.EXE.
  3071.  
  3072.               The first is the "text" mouse.  The "text" mouse uses
  3073.               standard mouse API calls and will work with all Microsoft
  3074.               compatible mice on any machine.
  3075.  
  3076.               The other is a "graphic" mouse.  Call for call it is
  3077.               identical to the "text" mouse, but internally it is larger
  3078.               and quite more complicated.  This mouse tricks DOS into
  3079.               thinking that it is in a graphics screen mode and therefore
  3080.               displays a real graphics mouse cursor.  It is quite
  3081.               impressive.
  3082.  
  3083.               The only drawback is that you lose ASCII characters 200 to
  3084.               208 and it only works on EGA/VGA adaptors.  If the driver
  3085.               detects it is on a MDA/CGA adapter, it defaults to a text
  3086.               cursor.
  3087.  
  3088.               To make use of any function outlined in this chapter, you
  3089.               must add the following line to your program code:
  3090.  
  3091.                    REM $INCLUDE : 'LITE.BI'
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.          ┌────────────────────────────────────────────────────────────────┐
  3111.          │  Portions of the graphic mouse cursor driver were written by,  │
  3112.          │  and are copyrighted by, Dave Kirsch.  Thank you Mr. Kirsch    │
  3113.          │  for allowing us to use your excellent routines.               │
  3114.          └────────────────────────────────────────────────────────────────┘
  3115.  
  3116.                 (c) Copyright 1988-1992 DSE Software Publishing
  3117.  
  3118.  
  3119.          ProWindows(tm) LITE - Version 5.00                           3.2
  3120.  
  3121.          SECTION 2 - ROUTINE DESCRIPTIONS
  3122.          =================================================================
  3123.  
  3124.          CheckMouse% - FUNCTION
  3125.  
  3126.          ACTION    Determines if a mouse is installed.
  3127.  
  3128.          SYNTAX    variablename% = CheckMouse%(Buttons%)
  3129.  
  3130.          REMARKS   This routine accepts the following argument(s):
  3131.  
  3132.                    Argument         Description
  3133.                    ---------------  --------------------------------------
  3134.                    Buttons%         Returns number of buttons on the mouse.
  3135.  
  3136.                    Determines whether mouse hardware and software are
  3137.                    installed.  If found, this function will return a non-
  3138.                    zero value and the Buttons% parameter will hold the
  3139.                    number of buttons on the mouse (2 or 3).
  3140.  
  3141.                    When CheckMouse is called, the mouse cursor style
  3142.                    defaults to the best available.  EGA/VGA adaptors will
  3143.                    display a smooth moving Windows(R) style graphics mouse
  3144.                    cursor (while in text mode) and CGA/MDA will display a
  3145.                    text based mouse cursor.
  3146.  
  3147.  
  3148.          ------------------------------------------------------------------
  3149.  
  3150.          DoubleClick% - FUNCTION
  3151.  
  3152.          ACTION    Determines if a mouse button was clicked twice.
  3153.  
  3154.          SYNTAX    variablename% = DoubleClick%(DelayTime%)
  3155.  
  3156.          REMARKS   This routine accepts the following argument(s):
  3157.  
  3158.                    Argument         Description
  3159.                    ---------------  --------------------------------------
  3160.                    DelayTime%       Maximum time between clicks.
  3161.  
  3162.                    This function can determine if a mouse button was double
  3163.                    clicked within a certain number of clock ticks (18.2
  3164.                    ms).  The first call sets up the time, and the second
  3165.                    call returns a positive value if the same function is
  3166.                    called again within the given number of clock ticks.
  3167.  
  3168.          ------------------------------------------------------------------
  3169.  
  3170.          GetMouse - FUNCTION
  3171.  
  3172.          ACTION    Retrieves current mouse state and coordinates.
  3173.  
  3174.          SYNTAX    variablename% = GetMouse%(Row%, Col%)
  3175.  
  3176.          REMARKS   This routine accepts the following argument(s):
  3177.  
  3178.                    Argument         Description
  3179.                    ---------------  --------------------------------------
  3180.  
  3181.                 (c) Copyright 1988-1992 DSE Software Publishing
  3182.  
  3183.  
  3184.          ProWindows(tm) LITE - Version 5.00                           3.3
  3185.  
  3186.                    Row%, Col%       Screen coordinates of mouse cursor.
  3187.  
  3188.                    This routine retrieves the current mouse state and
  3189.                    coordinates.  If a mouse button(s) is pressed, this
  3190.                    function returns the button number + 1.  The two
  3191.                    parameter always return the mouse cursor's screen
  3192.                    coordinates whether or not a button is pressed.
  3193.  
  3194.          SEE ALSO  GetButtonPress, GetButtonRelease, SetMouse
  3195.  
  3196.          ------------------------------------------------------------------
  3197.  
  3198.          GetMouseInfo - SUB
  3199.  
  3200.          ACTION    Retrieve information about the mouse.
  3201.  
  3202.          SYNTAX    GetMouseInfo major%, minor%, irq%, mtype%
  3203.  
  3204.          REMARKS   This routine accepts the following argument(s):
  3205.  
  3206.                    Argument         Description
  3207.                    ---------------  --------------------------------------
  3208.                    major%           Mouse driver major version number.
  3209.                    minor%             "     "    minor    "      "
  3210.                    irq%             IRQ number mouse is installed on.
  3211.  
  3212.                                     Value  Description
  3213.                                     -----  ------------------------------
  3214.                                       0    PS/2 pointing device
  3215.                                       1    not defined
  3216.                                       2    IRQ2
  3217.                                       3    IRQ3
  3218.                                      ...   ...
  3219.                                       7    IRQ7
  3220.  
  3221.                    mtype%           Type of mouse installed.
  3222.  
  3223.                                     Value  Description
  3224.                                     -----  ------------------------------
  3225.                                       1    bus mouse
  3226.                                       2    serial mouse
  3227.                                       3    Microsoft InPort
  3228.                                       4    IBM PS/2 Pointing Device port
  3229.                                       5    Hewlett-Packard mouse
  3230.  
  3231.                    This function returns information about the installed
  3232.                    mouse driver.
  3233.  
  3234.          ------------------------------------------------------------------
  3235.  
  3236.          GetMousePress - FUNCTION
  3237.  
  3238.          ACTION    Retrieves mouse button press information.
  3239.  
  3240.          SYNTAX    variablename% = GetMousePress% (Button%, Presses%,
  3241.                                                    Row%, Col%)
  3242.  
  3243.          REMARKS   This routine accepts the following argument(s):
  3244.  
  3245.  
  3246.                 (c) Copyright 1988-1992 DSE Software Publishing
  3247.  
  3248.  
  3249.          ProWindows(tm) LITE - Version 5.00                           3.4
  3250.  
  3251.                    Argument         Description
  3252.                    ---------------  --------------------------------------
  3253.                    Button%          Mouse button to check (0-2)
  3254.                    Presses%         Number of presses since last check.
  3255.                    Row%, Col%       Screen coordinates of last press.
  3256.  
  3257.                    The routine returns the number of times the specified
  3258.                    mouse button was pressed since the last time the same
  3259.                    routine was called.  Button press data is returned in
  3260.                    the last 3 parameters.
  3261.  
  3262.          SEE ALSO  GetMouseRelease
  3263.  
  3264.          ------------------------------------------------------------------
  3265.  
  3266.          GetMouseRelease - FUNCTION
  3267.  
  3268.          ACTION    Retrieves mouse button release information.
  3269.  
  3270.          SYNTAX    variablename% = GetMouseRelease% (Button%, Releases%,
  3271.                                                      Row%, Col%)
  3272.  
  3273.          REMARKS   This routine accepts the following argument(s):
  3274.  
  3275.                    Argument         Description
  3276.                    ---------------  --------------------------------------
  3277.                    Button%          Mouse button to check (0-2)
  3278.                    Releases%        Number of Releases since last check.
  3279.                    Row%, Col%       Screen coordinates of last press.
  3280.  
  3281.                    The routine returns the number of times the specified
  3282.                    mouse button was released since the last time the same
  3283.                    routine was called.  Button press data is returned in
  3284.                    the last 3 parameters.
  3285.  
  3286.          SEE ALSO  GetMousePress
  3287.  
  3288.          ------------------------------------------------------------------
  3289.  
  3290.          Mouse - FUNCTION
  3291.  
  3292.          ACTION    Retrieves mouse button information.
  3293.  
  3294.          SYNTAX    variablename% = Mouse% (Button%, Cmd%)
  3295.  
  3296.          REMARKS   This routine accepts the following argument(s):
  3297.  
  3298.                    Argument         Description
  3299.                    ---------------  --------------------------------------
  3300.                    Button%          Mouse button to check (0-2)
  3301.                    Cmd%             Information to retrieve.
  3302.  
  3303.                                     Value Description
  3304.                                     ----- --------------------------------
  3305.                                       1   Is button currently pressed.
  3306.                                       2   Button clicks since last call.
  3307.                                       3   Current mouse cursor row.
  3308.                                       4   Current mouse cursor column.
  3309.                                       5   Last mouse press row.
  3310.  
  3311.                 (c) Copyright 1988-1992 DSE Software Publishing
  3312.  
  3313.  
  3314.          ProWindows(tm) LITE - Version 5.00                           3.5
  3315.  
  3316.                                       6   Last mouse press column.
  3317.                                       7   Last mouse release row.
  3318.                                       8   Last mouse release column.
  3319.                                       9   Has the mouse state changed.
  3320.  
  3321.                    The routine returns the just about everything you ever
  3322.                    wanted to know about your mouse but were afraid to ask.
  3323.                    Function number 1 returns a positive value if the mouse
  3324.                    is currently pressed.  Function 2 can then returns the
  3325.                    number of times the button was pressed.  Function 9
  3326.                    returns a positive value if the mouse is pressed and if
  3327.                    it has been moved since the last call to function 9.
  3328.  
  3329.          ------------------------------------------------------------------
  3330.  
  3331.          MouseCursorOff - SUB
  3332.  
  3333.          ACTION    Turns off the mouse cursor.
  3334.  
  3335.          SYNTAX    MouseCursorOff
  3336.  
  3337.          REMARKS   Turns off the mouse cursor.  Even though the cursor is
  3338.                    not displayed, the cursor is still tracked and it's
  3339.                    movement can be read by other mouse functions.
  3340.  
  3341.          SEE ALSO  MouseCursorOn
  3342.  
  3343.          ------------------------------------------------------------------
  3344.  
  3345.          MouseCursorOn - SUB
  3346.  
  3347.          ACTION    Turns on the mouse cursor.
  3348.  
  3349.          SYNTAX    MouseCursorOn
  3350.  
  3351.          REMARKS   Turns on the mouse cursor after an initial call to
  3352.                    CheckMouse%() or MouseCursorOff.
  3353.  
  3354.          SEE ALSO  CheckMouse, MouseCursorOn
  3355.  
  3356.          ------------------------------------------------------------------
  3357.  
  3358.          MouseKillWindow - SUB
  3359.  
  3360.          ACTION    Hides mouse when out of bounds.
  3361.  
  3362.          SYNTAX    MouseKillWindow row%, col%, rows%, cols%
  3363.  
  3364.          REMARKS   This routine accepts the following argument(s):
  3365.  
  3366.                    Argument         Description
  3367.                    ---------------  --------------------------------------
  3368.                    row%, col%       Top left coordinate of mouse area.
  3369.                    rows%, cols%     Dimensions of mouse area.
  3370.  
  3371.                    This routine automatically hides the mouse cursor when
  3372.                    it leaves the defined screen area.
  3373.  
  3374.          NOTE      This function not availabe with graphics mouse.
  3375.  
  3376.                 (c) Copyright 1988-1992 DSE Software Publishing
  3377.  
  3378.  
  3379.          ProWindows(tm) LITE - Version 5.00                           3.6
  3380.  
  3381.  
  3382.          SEE ALSO  SetMouseWindow
  3383.  
  3384.          SetMouse - SUB
  3385.  
  3386.          ACTION    Re-positions the mouse cursor.
  3387.  
  3388.          SYNTAX    SetMouse row%, col%
  3389.  
  3390.          REMARKS   This routine accepts the following argument(s):
  3391.  
  3392.                    Argument         Description
  3393.                    ---------------  --------------------------------------
  3394.                    row%, cols%      New position for mouse cursor.
  3395.  
  3396.                    This routine moves the mouse cursor to a new location on
  3397.                    the screen.
  3398.  
  3399.          SEE ALSO  GetMouse
  3400.  
  3401.          ------------------------------------------------------------------
  3402.  
  3403.          SetMouseMode - SUB
  3404.  
  3405.          ACTION    Selects the mouse style to use.
  3406.  
  3407.          SYNTAX    SetMouseMode mode%
  3408.  
  3409.          REMARKS   This routine accepts the following argument(s):
  3410.  
  3411.                    Argument         Description
  3412.                    ---------------  --------------------------------------
  3413.                    mode%            Select cursor style.
  3414.  
  3415.                    This function selects the mouse style to use.  Mode 0
  3416.                    selects a text-based mouse cursor, and mode 1 selects a
  3417.                    smooth moving Windows(R) style graphics mouse cursor.
  3418.  
  3419.          SEE ALSO  CheckMouse
  3420.  
  3421.          SetMouseState - SUB
  3422.  
  3423.          ACTION    Turns mouse control OFF/ON
  3424.  
  3425.          SYNTAX    SetMouseState state%
  3426.  
  3427.          REMARKS   This routine accepts the following argument(s):
  3428.  
  3429.                    Argument         Description
  3430.                    ---------------  --------------------------------------
  3431.                    state%           New state of the mouse.
  3432.  
  3433.                    This routine turns on or off mouse controller. The mouse
  3434.                    cursor, software, and hardware remain active, but
  3435.                    ProWindows drivers no longer respond to mouse control.
  3436.  
  3437.          ------------------------------------------------------------------
  3438.  
  3439.          SetMouseWindow - SUB
  3440.  
  3441.                 (c) Copyright 1988-1992 DSE Software Publishing
  3442.  
  3443.  
  3444.          ProWindows(tm) LITE - Version 5.00                           3.7
  3445.  
  3446.  
  3447.          ACTION    Confines the mouse within a given screen area.
  3448.  
  3449.          SYNTAX    SetMouseWindow row%, col%, rows%, cols%
  3450.  
  3451.          REMARKS   This routine accepts the following argument(s):
  3452.  
  3453.                    Argument         Description
  3454.                    ---------------  --------------------------------------
  3455.                    row%, col%       Top left coordinate of mouse area.
  3456.                    rows%, cols%     Dimensions of mouse area.
  3457.  
  3458.                    This routine confines all mouse movement to the defined
  3459.                    screen area.  If the cursor is outside the area when
  3460.                    this routine is called, it is relocated to just inside
  3461.                    the area.  To reset, re-issue this same command with the
  3462.                    coordinates of the entire screen.
  3463.  
  3464.          SEE ALSO  MouseKillWindow
  3465.  
  3466.          ------------------------------------------------------------------
  3467.  
  3468.          termMouse - SUB
  3469.  
  3470.          ACTION    Un-installed the mouse driver.
  3471.  
  3472.          SYNTAX    termMouse
  3473.  
  3474.          REMARKS   This function un-installs the mouse driver.
  3475.  
  3476.          NOTE      This function MUST be called upon exiting your program
  3477.                    or you may get a really funny looking mouse cursor when
  3478.                    you move the mouse.  No harm should come, it will just
  3479.                    look funny.
  3480.  
  3481.                    The mouse driver will automatically reset itself if you
  3482.                    restart the program from within the environment.
  3483.  
  3484.          ------------------------------------------------------------------
  3485.  
  3486.  
  3487.  
  3488.  
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.                 (c) Copyright 1988-1992 DSE Software Publishing
  3507.  
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.  
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.  
  3520.  
  3521.  
  3522.  
  3523.  
  3524.  
  3525.                   #####  ##   ##   ###   ###### ###### ###### ######
  3526.                  ##   ## ##   ## ##   ## ##   ##  ##   ##     ##   ##
  3527.                  ##      ##   ## ##   ## ##   ##  ##   ##     ##   ##
  3528.                  ##      ####### ####### ######   ##   #####  ######
  3529.                  ##      ##   ## ##   ## ##       ##   ##     ## ##
  3530.                  ##   ## ##   ## ##   ## ##       ##   ##     ##  ##
  3531.                   #####  ##   ## ##   ## ##       ##   ###### ##   ##
  3532.  
  3533.                            ######  #####  ##   ## ######
  3534.                            ##     ##   ## ##   ## ##   ##
  3535.                            ##     ##   ## ##   ## ##   ##
  3536.                            #####  ##   ## ##   ## ######
  3537.                            ##     ##   ## ##   ## ## ##
  3538.                            ##     ##   ## ##   ## ##  ##
  3539.                            ##      #####   #####  ##   ##
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.                 (c) Copyright 1988-1992 DSE Software Publishing
  3571.  
  3572.  
  3573.          ProWindows(tm) LITE - Version 5.00                           4.1
  3574.  
  3575.          SYSTEM CONSTANTS
  3576.          =================================================================
  3577.  
  3578.          The following list of pre-set constants are defined in LITE.BI.
  3579.          These constants can be added "+" and passed as the options%
  3580.          parameter in a call to OpenWindow().
  3581.  
  3582.          NEVER modify the values of these constants.
  3583.  
  3584.          Pre-Set Constants   Value  Remark
  3585.          ------------------  -----  ------------------------------------
  3586.          OFFBUTTON               1  Place Off Icon on window
  3587.          RESIZEBUTTON            2  Place Re-size Icon on window
  3588.          DRAGBAR                 4  Place Drag Bar on window
  3589.          HORZSCROLLBAR           8  Place Horiz. Scroll Bar on window
  3590.          VERTSCROLLBAR          16  Place Vert. Scroll Bar on window
  3591.          SELECTABLE             64  Makes window selectable with mouse
  3592.          FLAT                  128  Create a borderless Flat window
  3593.          AUTOCLOSE             512  Auto-close window when hidden
  3594.          AUTOSCROLL           8192  Makes window scroll bars adjust window.
  3595.  
  3596.          -----------------------------------------------------------------
  3597.          USER CONSTANTS
  3598.  
  3599.          This next set of constants can be defined by the user and should
  3600.          be custom tailored to each application.  These constants should
  3601.          ALWAYS at the beginning of the main module and before any $INCLUDE
  3602.          files.
  3603.  
  3604.          The minimum value of each constant should NEVER be less than 1.
  3605.  
  3606.          User Set Constants  Value  Remark
  3607.          ------------------  -----  ------------------------------------
  3608.          MAXBUTTONS             64  ProWindows(tm) PROFESSIONAL ONLY
  3609.          MAXOPTIONS             24  ProWindows(tm) PROFESSIONAL ONLY
  3610.          MAXMENUS               20  ProWindows(tm) PROFESSIONAL ONLY
  3611.          MAXWINDOWS             30  Maximum number of windows
  3612.  
  3613.          -----------------------------------------------------------------
  3614.  
  3615.          DATA TYPES
  3616.  
  3617.          The following data types are declared in LITE.BI.
  3618.  
  3619.          TYPEs and Elements            Remarks
  3620.          ----------------------------  -----------------------------------
  3621.          TYPE wincb
  3622.               row AS INTEGER           Screen row of window
  3623.               col AS INTEGER           Screen column of window
  3624.               rows AS INTEGER          Displayed rows of window
  3625.               cols AS INTEGER          Displayed columns of window
  3626.               attr AS INTEGER          Default attribute of window
  3627.               Border AS INTEGER        Border style of window
  3628.               Shadow AS INTEGER        Shadow style of window
  3629.               Zoom AS INTEGER          Zoom style of window
  3630.               ptr AS INTEGER           Index into scrn%() array
  3631.               cbytes AS INTEGER        Character bytes of compressed image
  3632.               abytes AS INTEGER        Attribute bytes of compressed image
  3633.          END TYPE
  3634.  
  3635.                 (c) Copyright 1988-1992 DSE Software Publishing
  3636.  
  3637.  
  3638.          ProWindows(tm) LITE - Version 5.00                           4.2
  3639.  
  3640.          TYPE vircb
  3641.               row AS INTEGER           Screen row to display window at
  3642.               col AS INTEGER           Screen column to display window at
  3643.               rows AS INTEGER          Window rows to display
  3644.               cols AS INTEGER          Window columns to display
  3645.               vrow AS INTEGER          Displayed offset into window
  3646.               vcol AS INTEGER          Displayed offset into window
  3647.               vrows AS INTEGER         Virtual rows in window
  3648.               vcols AS INTEGER         Virtual columns in window
  3649.               attr AS INTEGER          Attribute of virtual window
  3650.               Border AS INTEGER        Border style of virtual window
  3651.               Shadow AS INTEGER        Shadow style of virtual window
  3652.               Zoom AS INTEGER          Zoom style of virtual window
  3653.               WI AS INTEGER            Index into wcb() array
  3654.               Options AS INTEGER       Display options of virtual window
  3655.               TitlePos AS INTEGER      Title position of virtual window
  3656.               Title AS STRING * 20     Title of virtual window
  3657.               Buttons AS INTEGER       Number of buttons in virtual window
  3658.               LastButton AS INTEGER    Last button selected
  3659.               VertPos AS INTEGER       Vertical scroll bar position
  3660.               HorzPos AS INTEGER       Horizontal scroll bar position
  3661.          END TYPE
  3662.  
  3663.          -----------------------------------------------------------------
  3664.  
  3665.          SELECT GLOBAL VARIABLES AND ARRAYS
  3666.  
  3667.          NAME      /VideoData/ MAXROWS AS INTEGER
  3668.  
  3669.          REMARKS   MAXROWS% is filled by the function InitPro(), and holds
  3670.                    the number of screen rows in the current display mode.
  3671.  
  3672.          -----------------------------------------------------------------
  3673.  
  3674.          NAME      /VideoData/ MAXCOLS AS INTEGER
  3675.  
  3676.          REMARKS   MAXCOLS% is filled by the function InitPro(), and holds
  3677.                    the number of screen columns in the current display
  3678.                    mode.
  3679.  
  3680.          -----------------------------------------------------------------
  3681.  
  3682.          NAME      /VideoData/ VIDEOSEGMENT AS INTEGER
  3683.  
  3684.          REMARKS   VIDEOSEGMENT% is filled by the function InitPro(), and
  3685.                    holds the segment address of the beginning of display
  3686.                    memory.
  3687.  
  3688.          -----------------------------------------------------------------
  3689.  
  3690.          NAME      /VideoData/ VIDEOOFFSET AS INTEGER
  3691.          REMARKS   VIDEOOFFSET% is filled by the function InitPro(), and
  3692.                    holds the offset address of the current video page in
  3693.                    display memory.
  3694.  
  3695.          -----------------------------------------------------------------
  3696.  
  3697.  
  3698.  
  3699.  
  3700.                 (c) Copyright 1988-1992 DSE Software Publishing
  3701.  
  3702.  
  3703.          ProWindows(tm) LITE - Version 5.00                           4.3
  3704.  
  3705.          NAME      /WindowData/ wcb() AS wincb
  3706.  
  3707.          REMARKS   wcb() is a stack-based array that holds information
  3708.                    about the window currently on the screen.  The last
  3709.                    window displayed is pointed to by: wcb(WI%).
  3710.  
  3711.          -----------------------------------------------------------------
  3712.  
  3713.          NAME      /WindowData/ scrn() AS INTEGER
  3714.  
  3715.          REMARKS   scrn%() is an integer array that holds the individual
  3716.                    images of the original portions of the screen where a
  3717.                    window is being displayed.  The contents on scrn%() are
  3718.                    highly compressed and should NEVER be modified.
  3719.  
  3720.          -----------------------------------------------------------------
  3721.  
  3722.          NAME      /WindowData/ WI AS INTEGER
  3723.  
  3724.          REMARKS   WI% is used as a pointer into the arrays wcb() and
  3725.                    wcbndx%().  WI% holds the internal stack position of the
  3726.                    last window displayed.  It also queues the next window
  3727.                    removed by the function RemoveWindow().
  3728.  
  3729.          -----------------------------------------------------------------
  3730.  
  3731.          NAME      /WindowData/ SoundMode AS INTEGER
  3732.  
  3733.          REMARKS   SoundMode% is used to turn on sound effects when a
  3734.                    window is first displayed or removed.
  3735.  
  3736.                    SoundMode accepts the following values:
  3737.  
  3738.                    Value            Description
  3739.                    ---------------  --------------------------------------
  3740.                    0                Disable
  3741.                    1                Click
  3742.                    2                Beep
  3743.                    3                Glissando (chirp)
  3744.  
  3745.          -----------------------------------------------------------------
  3746.  
  3747.          NAME      /WindowData/ SNOW AS INTEGER
  3748.  
  3749.          REMARKS   SNOW% is used to control flicker reduction on older CGA
  3750.                    adaptors.  SNOW% should ALWAYS be set prior to the
  3751.                    initial call to InitPro().  If InitPro() decides that
  3752.                    flicker reduction is not needed, it will automatically
  3753.                    disable it.
  3754.  
  3755.          -----------------------------------------------------------------
  3756.  
  3757.          NAME      /WindowData/ CreateMode AS INTEGER
  3758.  
  3759.          REMARKS   Used as a debugging aid, when set, CreateMode% enables
  3760.                    the window status display at the lower left portion of
  3761.                    the screen.  The displayed numbers correspond to the
  3762.                    number of windows being displayed, highest subscript of
  3763.                    the array scrn%() being used, and the highest subscript
  3764.  
  3765.                 (c) Copyright 1988-1992 DSE Software Publishing
  3766.  
  3767.  
  3768.          ProWindows(tm) LITE - Version 5.00                           4.4
  3769.  
  3770.                    of array VirMem%() being used.
  3771.                    CreateMode% should ALWAYS be set during initial program
  3772.                    development.
  3773.  
  3774.          -----------------------------------------------------------------
  3775.  
  3776.          NAME      /WindowData/ ERRNO AS INTEGER
  3777.  
  3778.          REMARKS   ERRNO% will contain a non-zero value if an error
  3779.                    occurred while loading a window, menu, or input form
  3780.                    from the disk.
  3781.  
  3782.          -----------------------------------------------------------------
  3783.  
  3784.          NAME      /wprintData/ WindowSeg AS INTEGER
  3785.  
  3786.          REMARKS   DO NOT USE
  3787.  
  3788.          -----------------------------------------------------------------
  3789.  
  3790.          NAME      /wprintData/ WindowOff AS INTEGER,
  3791.  
  3792.          REMARKS   WindowOff% holds the memory offset of the window pointed
  3793.                    to by the variable CurrentWindow%.
  3794.  
  3795.          -----------------------------------------------------------------
  3796.  
  3797.          NAME      /wprintData/ WindowSize AS INTEGER
  3798.  
  3799.          REMARKS   WindowSize% holds the image width of the window pointed
  3800.                    to by the variable CurrentWindow%.
  3801.  
  3802.          -----------------------------------------------------------------
  3803.  
  3804.          NAME      /VLSdata/ VirMem() AS INTEGER
  3805.  
  3806.          REMARKS   VirMem%() is an integer array that holds the images of
  3807.                    individual virtual windows.  The contents of a window
  3808.                    can be modified by altering the contents of this array.
  3809.                    Modify at your own risk.
  3810.  
  3811.          -----------------------------------------------------------------
  3812.  
  3813.          NAME      /VLSdata/ vcb() AS vircb
  3814.  
  3815.          REMARKS   vcb() is an array that holds information necessary for
  3816.                    the management of each virtual window.  It's contents
  3817.                    should never be modified directly.
  3818.  
  3819.          -----------------------------------------------------------------
  3820.  
  3821.          NAME      /VLSdata/ wcbndx() AS INTEGER
  3822.  
  3823.          REMARKS   wcbndx%() is a stack-based array that holds the handles
  3824.                    of all virtual windows being displayed.  WI% is the
  3825.                    pointer variable for this array.
  3826.  
  3827.          -----------------------------------------------------------------
  3828.  
  3829.  
  3830.                 (c) Copyright 1988-1992 DSE Software Publishing
  3831.  
  3832.  
  3833.          ProWindows(tm) LITE - Version 5.00                           4.5
  3834.  
  3835.          NAME      /VLSdata/ CurrentWindow AS INTEGER
  3836.  
  3837.          REMARKS   CurrentWindow% holds the handle of the currently
  3838.                    selected virtual window.  All ProWindows specific print
  3839.                    functions are directed to this window.
  3840.  
  3841.          -----------------------------------------------------------------
  3842.  
  3843.          NAME      /VLSdata/ UpdateMode AS INTEGER
  3844.  
  3845.          REMARKS   UpdateMode% controls whether ProWindows specific print
  3846.                    statement are immediately executed or only when one of
  3847.                    the Refresh functions are called.
  3848.  
  3849.          -----------------------------------------------------------------
  3850.  
  3851.          NAME      /VLSdata/ GlobalOptions AS INTEGER
  3852.  
  3853.          REMARKS   GlobalOptions% hold the options used when a window is
  3854.                    created with a call to PopWindow().  This variable
  3855.                    should be defined prior to the call.
  3856.  
  3857.          -----------------------------------------------------------------
  3858.  
  3859.          NAME      /VLSdata/ FreezeFrame AS INTEGER
  3860.  
  3861.          REMARKS   When set, FreezeFrame cancels all mouse actions to any
  3862.                    other window than CurrentWindow%.
  3863.  
  3864.          -----------------------------------------------------------------
  3865.  
  3866.          /VLSdata/ VideoRecycle AS INTEGER
  3867.  
  3868.          REMARKS   When set, VideoRecycle% forces the Window Manager to re-
  3869.                    use normally unused portions of video ram as a scratch
  3870.                    pad buffer.  This option can return up to 24K back to
  3871.                    the BASIC environment.  "Video Recycling" is not
  3872.                    available on Monochrome (MDA) adaptors, and will be
  3873.                    automatically disabled.
  3874.  
  3875.                    VideoRecycle% should be set prior to calling InitPro().
  3876.  
  3877.          -----------------------------------------------------------------
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.                 (c) Copyright 1988-1992 DSE Software Publishing
  3896.  
  3897.  
  3898.